/** * @description 批量修改标签公开状态 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params {} export const init = undefined; export async function request(params = {}, bodyParams = {}) { return Request({ url: '/api/oneid/factoryLabel/batchChangePublicStatus', params: bodyParams, method: 'put', }); } export function createFetchAction(types, stateKey) { return (params = {}, bodyParams, meta?: any) => { return { types, meta, stateKey, method: 'PUT', url: getUrl( '/api/oneid/factoryLabel/batchChangePublicStatus', params, 'PUT', ), params: bodyParams, init, }; }; }