| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- import request from "@kasite/intelmt-admin/service/api/request";
- const apiUrl = {
- // 字典查询(示例接口)
- QueryDictList: "wsgw/sys/dict/DataList/callApiJSON.do",
- // VIP 身份等级相关接口(对应后端 IDiyVipService 上的 4 个方法)
- InsertPatientLevel: "wsgw/diy/vip/InsertPatientLevel/callApiJSON.do",
- QueryPatientLevel: "wsgw/diy/vip/QueryPatientLevel/callApiJSON.do",
- UpdatePatientLevel: "wsgw/diy/vip/UpdatePatientLevel/callApiJSON.do",
- DelPatientLevel: "wsgw/diy/vip/DelPatientLevel/callApiJSON.do",
- // vip crm 绑定相关接口
- SelectByCrmCode: "wsgw/diy/vip/SelectByCrmCode/callApiJSON.do",
- UpdateByCrmCode: "wsgw/diy/vip/UpdateByCrmCode/callApiJSON.do",
- };
- /**
- * 查询字典配置
- */
- export const QueryDictList = async (data: object = {}) => {
- const res = await request.doPost(apiUrl.QueryDictList, data);
- return res;
- };
- /**
- * 新增 VIP 身份等级
- */
- export const InsertPatientLevel = async (data: object = {}) => {
- const res = await request.doPost(apiUrl.InsertPatientLevel, data);
- return res;
- };
- /**
- * 查询 VIP 身份等级列表
- */
- export const QueryPatientLevel = async (data: object = {}) => {
- const res = await request.doPost(apiUrl.QueryPatientLevel, data);
- return res;
- };
- /**
- * 修改 VIP 身份等级
- */
- export const UpdatePatientLevel = async (data: object = {}) => {
- const res = await request.doPost(apiUrl.UpdatePatientLevel, data);
- return res;
- };
- /**
- * 删除 VIP 身份等级
- */
- export const DelPatientLevel = async (data: object = {}) => {
- const res = await request.doPost(apiUrl.DelPatientLevel, data);
- return res;
- };
- /**
- * 根据crm code查询vip身份等级
- * @param data
- * @returns
- */
- export const SelectByCrmCode = async (data: object = {}) => {
- const res = await request.doPost(apiUrl.SelectByCrmCode, data);
- return res;
- };
- /**
- * 更新crm code对应的vip身份等级
- * @param data
- * @returns
- */
- export const UpdateByCrmCode = async (data: object = {}) => {
- const res = await request.doPost(apiUrl.UpdateByCrmCode, data);
- return res;
- };
|