/** * @description 编辑标签 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** factoryLabelId */ factoryLabelId: string; /** lock */ lock: number; } export const init = undefined; export async function request(params = {}, bodyParams = {}) { return Request({ url: '/api/oneid/factoryLabel/{factoryLabelId}', params: bodyParams, method: 'post', }); } export function createFetchAction(types, stateKey) { return (params = {}, bodyParams, meta?: any) => { return { types, meta, stateKey, method: 'POST', url: getUrl('/api/oneid/factoryLabel/{factoryLabelId}', params, 'POST'), params: bodyParams, init, }; }; }