/** * @description 查询对象的加锁信息 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** 对象ID */ objectId?: string; /** 对象类型 */ objectType?: string; } export const init = new defs.ObjectLockBO(); export async function request(params = {}) { return Request({ url: '/api/lock', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/lock', params, 'GET'), params, init, }; }; }