/** * @description 标签实例 - 搜索:标签名模糊匹配,标签id精确匹配 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** kw */ kw?: string; /** bizDate */ bizDate?: string; /** limit */ limit?: number; } export const init = new defs.TreeNodeBO(); export async function request(params = {}) { return Request({ url: '/api/tree/oneid/op/task/label/search', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/tree/oneid/op/task/label/search', params, 'GET'), params, init, }; }; }