Showing
1 changed file
with
21 additions
and
0 deletions
src/api/cycle.js
0 → 100644
| 1 | +/* | ||
| 2 | + * @Date: 2025-01-16 17:35:00 | ||
| 3 | + * @LastEditors: hookehuyr hookehuyr@gmail.com | ||
| 4 | + * @LastEditTime: 2025-01-16 17:35:00 | ||
| 5 | + * @FilePath: /data-table/src/api/cycle.js | ||
| 6 | + * @Description: 周期接口 | ||
| 7 | + */ | ||
| 8 | +import { fn, fetch } from '@/api/fn'; | ||
| 9 | + | ||
| 10 | +const Api = { | ||
| 11 | + CYCLE_LIST: '/srv/?f=custom_form&a=cycle_list', | ||
| 12 | +}; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * @description: 查询周期列表 | ||
| 16 | + * @param: client_id 主体客户id | ||
| 17 | + * @param: form_code 表单唯一标识 | ||
| 18 | + * @returns: is_cycle 该表单是否设置了周期 | ||
| 19 | + * @returns: cycle_list 周期列表数组,包含id、title、start_date、end_date、reg_begin_time、reg_end_time | ||
| 20 | + */ | ||
| 21 | +export const getCycleListAPI = (params) => fn(fetch.get(Api.CYCLE_LIST, params)); |
-
Please register or login to post a comment