/** * @description POST接口 * @throws Exception code * BIZ_UNIT_NOT_FOUND:业务板块找不到 * @p1-test * bizUnitId:配置不存在bizUnitId=-1 [BIZ_UNIT_NOT_FOUND] */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** bizUnitId */ bizUnitId: number; } export const init = undefined; export async function request(params = {}, bodyParams = {}) { return Request({ url: '/api/bizUnitConfig/{bizUnitId}/timePartition', params: bodyParams, method: 'post', }); } export function createFetchAction(types, stateKey) { return (params = {}, bodyParams, meta?: any) => { return { types, meta, stateKey, method: 'POST', url: getUrl( '/api/bizUnitConfig/{bizUnitId}/timePartition', params, 'POST', ), params: bodyParams, init, }; }; }