feat(admin): 移除管理员界面的旧版 SVG 图标- 删除了位于 /dict/admin/public/assets/ 目录下的 logo.svg 文件- 清理了项目中不再使用的图标资源
- 减少了前端静态资源体积 -为后续引入新版图标系统做准备 - 更新了相关引用路径(如有)- 确保移除后功能正常运行且无报错
This commit is contained in:
101
output/taro/src/api/clinic/clinicPatientUser/index.ts
Normal file
101
output/taro/src/api/clinic/clinicPatientUser/index.ts
Normal file
@@ -0,0 +1,101 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api/index';
|
||||
import type { ClinicPatientUser, ClinicPatientUserParam } from './model';
|
||||
|
||||
/**
|
||||
* 分页查询患者
|
||||
*/
|
||||
export async function pageClinicPatientUser(params: ClinicPatientUserParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ClinicPatientUser>>>(
|
||||
'/clinic/clinic-patient-user/page',
|
||||
params
|
||||
);
|
||||
if (res.code === 0) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者列表
|
||||
*/
|
||||
export async function listClinicPatientUser(params?: ClinicPatientUserParam) {
|
||||
const res = await request.get<ApiResult<ClinicPatientUser[]>>(
|
||||
'/clinic/clinic-patient-user',
|
||||
params
|
||||
);
|
||||
if (res.code === 0 && res.data) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加患者
|
||||
*/
|
||||
export async function addClinicPatientUser(data: ClinicPatientUser) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/clinic/clinic-patient-user',
|
||||
data
|
||||
);
|
||||
if (res.code === 0) {
|
||||
return res.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者
|
||||
*/
|
||||
export async function updateClinicPatientUser(data: ClinicPatientUser) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
'/clinic/clinic-patient-user',
|
||||
data
|
||||
);
|
||||
if (res.code === 0) {
|
||||
return res.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者
|
||||
*/
|
||||
export async function removeClinicPatientUser(id?: number) {
|
||||
const res = await request.del<ApiResult<unknown>>(
|
||||
'/clinic/clinic-patient-user/' + id
|
||||
);
|
||||
if (res.code === 0) {
|
||||
return res.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除患者
|
||||
*/
|
||||
export async function removeBatchClinicPatientUser(data: (number | undefined)[]) {
|
||||
const res = await request.del<ApiResult<unknown>>(
|
||||
'/clinic/clinic-patient-user/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
);
|
||||
if (res.code === 0) {
|
||||
return res.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询患者
|
||||
*/
|
||||
export async function getClinicPatientUser(id: number) {
|
||||
const res = await request.get<ApiResult<ClinicPatientUser>>(
|
||||
'/clinic/clinic-patient-user/' + id
|
||||
);
|
||||
if (res.code === 0 && res.data) {
|
||||
return res.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.message));
|
||||
}
|
||||
59
output/taro/src/api/clinic/clinicPatientUser/model/index.ts
Normal file
59
output/taro/src/api/clinic/clinicPatientUser/model/index.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
import type { PageParam } from '@/api/index';
|
||||
|
||||
/**
|
||||
* 患者
|
||||
*/
|
||||
export interface ClinicPatientUser {
|
||||
// 主键ID
|
||||
id?: number;
|
||||
// 类型 0经销商 1企业 2集团
|
||||
type?: number;
|
||||
// 自增ID
|
||||
userId?: number;
|
||||
// 姓名
|
||||
realName?: string;
|
||||
// 手机号
|
||||
mobile?: string;
|
||||
// 支付密码
|
||||
payPassword?: string;
|
||||
// 当前可提现佣金
|
||||
money?: string;
|
||||
// 已冻结佣金
|
||||
freezeMoney?: string;
|
||||
// 累积提现佣金
|
||||
totalMoney?: string;
|
||||
// 收益基数
|
||||
rate?: string;
|
||||
// 单价
|
||||
price?: string;
|
||||
// 推荐人用户ID
|
||||
refereeId?: number;
|
||||
// 成员数量(一级)
|
||||
firstNum?: number;
|
||||
// 成员数量(二级)
|
||||
secondNum?: number;
|
||||
// 成员数量(三级)
|
||||
thirdNum?: number;
|
||||
// 专属二维码
|
||||
qrcode?: string;
|
||||
// 备注
|
||||
comments?: string;
|
||||
// 排序号
|
||||
sortNumber?: number;
|
||||
// 是否删除
|
||||
isDelete?: number;
|
||||
// 租户id
|
||||
tenantId?: number;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 修改时间
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 患者搜索条件
|
||||
*/
|
||||
export interface ClinicPatientUserParam extends PageParam {
|
||||
id?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user