feat
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
import type { ActivityVO, ActivityForm, ActivityQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询客户服务-活动列表
|
||||
* @param params
|
||||
* @returns 客户服务-活动列表
|
||||
*/
|
||||
export function activityList(params?: ActivityQuery) {
|
||||
return requestClient.get<PageResult<ActivityVO>>('/property/activity/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出客户服务-活动列表
|
||||
* @param params
|
||||
* @returns 客户服务-活动列表
|
||||
*/
|
||||
export function activityExport(params?: ActivityQuery) {
|
||||
return commonExport('/property/activity/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询客户服务-活动详情
|
||||
* @param id id
|
||||
* @returns 客户服务-活动详情
|
||||
*/
|
||||
export function activityInfo(id: ID) {
|
||||
return requestClient.get<ActivityVO>(`/property/activity/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户服务-活动
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function activityAdd(data: ActivityForm) {
|
||||
return requestClient.postWithMsg<void>('/property/activity', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新客户服务-活动
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function activityUpdate(data: ActivityForm) {
|
||||
return requestClient.putWithMsg<void>('/property/activity', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户服务-活动
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function activityRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/activity/${id}`);
|
||||
}
|
154
apps/web-antd/src/api/property/customerService/activity/model.d.ts
vendored
Normal file
154
apps/web-antd/src/api/property/customerService/activity/model.d.ts
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ActivityVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 状态(1待进行2进行中3已完成)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 活动图片
|
||||
*/
|
||||
activityImgUrl: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
activityContent: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
issuers: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ActivityForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 状态(1待进行2进行中3已完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 活动图片
|
||||
*/
|
||||
activityImgUrl?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
activityContent?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
issuers?: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ActivityQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 状态(1待进行2进行中3已完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 活动图片
|
||||
*/
|
||||
activityImgUrl?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
activityContent?: string;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
issuers?: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user