hookehuyr

feat(api): 添加获取周期列表的接口

添加周期列表查询接口,包含表单周期状态和周期详情数据
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));