Commit 50fedcff authored by guang.wu's avatar guang.wu

去掉quantgroups相关信息

parent 02604066
This diff is collapsed.
......@@ -100,7 +100,7 @@ export async function getOpLog(params) {
/**
* 多物流发货-查询物流轨迹
* @see http://yapi.quantgroups.com/project/389/interface/api/46120
* @see /yapi/project/389/interface/api/46120
*/
export function apiDeliveriesTraceList(data) {
......
......@@ -6,7 +6,7 @@ const { kdspApi } = config;
/**
* 分页查询所有品牌列表
* http://yapi.quantgroups.com/project/389/interface/api/66404
* /yapi/project/389/interface/api/66404
*/
export async function apiBrandList(params) {
const param = {
......@@ -30,7 +30,7 @@ export async function apiBrandList(params) {
/**
* 添加品牌
* http://yapi.quantgroups.com/project/389/interface/api/66389
* /yapi/project/389/interface/api/66389
* */
export async function apiCreateBrand(data) {
return request.post('/api/merchants/brands/add', {
......@@ -41,7 +41,7 @@ export async function apiCreateBrand(data) {
/**
* 编辑品牌
* http://yapi.quantgroups.com/project/389/interface/api/66394
* /yapi/project/389/interface/api/66394
*/
export async function apiEditBrand(data) {
return request.post('/api/merchants/brands/edit', {
......@@ -52,7 +52,7 @@ export async function apiEditBrand(data) {
/**
* 补充资质
* http://yapi.quantgroups.com/project/389/interface/api/66399
* /yapi/project/389/interface/api/66399
*/
export async function apiAppendQualifyBrand(data) {
return request.post('/api/merchants/brands/qualify/add', {
......@@ -63,7 +63,7 @@ export async function apiAppendQualifyBrand(data) {
/**
* 查询品牌信息
* http://yapi.quantgroups.com/project/389/interface/api/66409
* /yapi/project/389/interface/api/66409
* */
export async function apiBrandDetail(params) {
return request.get(`/api/merchants/brands/detail?${qs.stringify(params)}`, {
......
......@@ -6,7 +6,7 @@ import _ from 'lodash';
const { goodsApi, apiPrefix, roleApi } = config;
// [企业员工]-列表查询
// http://yapi.quantgroups.com/project/389/interface/api/65359
// /yapi/project/389/interface/api/65359
export const apiStaffList = async params => {
params.page = params.current;
params.size = params.pageSize;
......@@ -20,7 +20,7 @@ export const apiStaffList = async params => {
};
// [企业客户]-列表查询
// http://yapi.quantgroups.com/project/389/interface/api/65324
// /yapi/project/389/interface/api/65324
export const apiEnterpriseList = async () => {
const data = await request.post(`${apiPrefix}/enterprise/pageList`, {
prefix: roleApi,
......@@ -33,7 +33,7 @@ export const apiEnterpriseList = async () => {
};
// [企业部门]-列表查询
// http://yapi.quantgroups.com/project/389/interface/api/65344
// /yapi/project/389/interface/api/65344
export const apiDepartmentList = async params => {
const data = await request.post(`${apiPrefix}/enterprise/department/pageList`, {
prefix: roleApi,
......@@ -43,7 +43,7 @@ export const apiDepartmentList = async params => {
};
// [企业员工]-添加员工
// http://yapi.quantgroups.com/project/389/interface/api/65364
// /yapi/project/389/interface/api/65364
export const apiStaffSave = async params => {
const data = await request.post(`${apiPrefix}/enterprise/staff/save`, {
prefix: roleApi,
......@@ -53,7 +53,7 @@ export const apiStaffSave = async params => {
};
// [企业员工]-导入员工
// http://yapi.quantgroups.com/project/389/interface/api/65384
// /yapi/project/389/interface/api/65384
export const apiStaffExcel = async file => {
console.log(file);
const params = new FormData();
......@@ -67,7 +67,7 @@ export const apiStaffExcel = async file => {
};
// [企业部门]-新增企业部门
// http://yapi.quantgroups.com/project/389/interface/api/65349
// /yapi/project/389/interface/api/65349
export const apiDepartmentSave = async params => {
const data = await request.post(`${apiPrefix}/enterprise/department/save`, {
prefix: roleApi,
......@@ -77,7 +77,7 @@ export const apiDepartmentSave = async params => {
};
// [企业部门]-导入企业部门
// http://yapi.quantgroups.com/project/389/interface/api/65354
// /yapi/project/389/interface/api/65354
export const apiDepartmentExcel = async file => {
const params = new FormData();
params.append('file', file.file.file);
......@@ -90,7 +90,7 @@ export const apiDepartmentExcel = async file => {
};
// [企业员工]-删除员工
// http://yapi.quantgroups.com/project/389/interface/api/65374
// /yapi/project/389/interface/api/65374
export const apiStaffDelete = async params => {
const data = await request.post(`${apiPrefix}/enterprise/staff/delete`, {
prefix: roleApi,
......@@ -100,7 +100,7 @@ export const apiStaffDelete = async params => {
};
// [企业部门]-更新部门
// http://yapi.quantgroups.com/project/389/interface/api/65474
// /yapi/project/389/interface/api/65474
export const apiDepartmentUpdate = async params => {
const data = await request.post(`${apiPrefix}/enterprise/department/update`, {
prefix: roleApi,
......@@ -110,7 +110,7 @@ export const apiDepartmentUpdate = async params => {
};
// [企业员工]-充值明细查询
// http://yapi.quantgroups.com/project/389/interface/api/65489
// /yapi/project/389/interface/api/65489
export const apiGenerateLogList = async params => {
const data = await request.get(`${apiPrefix}/enterprise/staff/generateLog/list`, {
prefix: roleApi,
......@@ -120,7 +120,7 @@ export const apiGenerateLogList = async params => {
};
// [企业员工]-员工限额
// http://yapi.quantgroups.com/project/389/interface/api/65379
// /yapi/project/389/interface/api/65379
export const apiStaffLimit = async params => {
const data = await request.post(`${apiPrefix}/enterprise/staff/limit`, {
prefix: roleApi,
......@@ -130,7 +130,7 @@ export const apiStaffLimit = async params => {
};
// [企业员工]-拉黑员工
// http://yapi.quantgroups.com/project/389/interface/api/65369
// /yapi/project/389/interface/api/65369
export const apiStaffBlack = async params => {
const data = await request.post(`${apiPrefix}/enterprise/staff/black`, {
prefix: roleApi,
......
......@@ -13,7 +13,7 @@ const headers = {
/**
* 商品列表
* yapi: http://yapi.quantgroups.com/project/389/interface/api/23814
* yapi: /yapi/project/389/interface/api/23814
*/
export async function searchList(params) {
return request.post('/product/api/merchant/page', {
......@@ -316,7 +316,7 @@ export async function apiTakeawayGoods(params) {
// }
/**
* 外卖商品排序
* yapi: http://yapi.quantgroups.com/project/389/interface/api/58174
* yapi: /yapi/project/389/interface/api/58174
*/
export async function apiSortTakeawayGoods(data) {
return request.post('/api/merchants/products/sku/range/sort', {
......@@ -392,7 +392,7 @@ export async function apiProductStock(data) {
/**
* 获取竞价详情
* yApi: http://yapi.quantgroups.com/project/389/interface/api/67169
* yApi: /yapi/project/389/interface/api/67169
* * */
export async function apiProductBiddingInfo(params) {
return request.get('/api/merchants/products/bidding/detail', {
......@@ -403,7 +403,7 @@ export async function apiProductBiddingInfo(params) {
/**
* 供应商更新商品供货价库存
* yApi: http://yapi.quantgroups.com/project/389/interface/api/67139
* yApi: /yapi/project/389/interface/api/67139
* * */
export async function apiProductBiddingUpdate(params) {
return request.post('/api/merchants/products/bidding/edit', {
......@@ -414,7 +414,7 @@ export async function apiProductBiddingUpdate(params) {
/**
* 可竞价sku列表
* yApi: http://yapi.quantgroups.com/project/389/interface/api/67164
* yApi: /yapi/project/389/interface/api/67164
* * */
export async function apiBiddingList(params) {
return request.post('/api/merchants/products/bidding/page', {
......@@ -426,7 +426,7 @@ export async function apiBiddingList(params) {
/**
* 导入竞价商品信息
* yApi: http://yapi.quantgroups.com/project/389/interface/api/45896
* yApi: /yapi/project/389/interface/api/45896
* * */
export async function apiUploadGoodsFile(file) {
const params = new FormData();
......@@ -440,7 +440,7 @@ export async function apiUploadGoodsFile(file) {
}
/**
* 下载竞价商品模版
* yApi: http://yapi.quantgroups.com/project/389/interface/api/67269
* yApi: /yapi/project/389/interface/api/67269
* * */
export async function apiDownBiddingTemplate(params) {
const productCategoryId = params?.productCategoryId || [];
......
......@@ -133,7 +133,7 @@ export const apiEditDraft = data =>
data,
});
// 菜单分组 http://yapi.quantgroups.com/project/389/interface/api/64044
// 菜单分组 /yapi/project/389/interface/api/64044
export const apiQueryShopList = data =>
request.post('/api/merchants/products/storageRack/listByShopIdAndStorageRackIds', {
prefix: goodsApi,
......@@ -148,26 +148,26 @@ export const apiCreateShop = data =>
prefix: goodsApi,
data,
});
// 商品标签列表 http://yapi.quantgroups.com/project/389/interface/api/57979
// 商品标签列表 /yapi/project/389/interface/api/57979
export const apiTagList = data =>
request.post('/api/merchants/products/tag/getAll', {
prefix: goodsApi,
data,
});
// 单位列表 http://yapi.quantgroups.com/project/389/interface/api/57179
// 单位列表 /yapi/project/389/interface/api/57179
export const apiUnits = data =>
request.get('/api/merchants/products/units', {
prefix: goodsApi,
data,
});
// 获取shopids http://yapi.quantgroups.com/project/389/interface/api/38056
// 获取shopids /yapi/project/389/interface/api/38056
export const apiShopIds = data =>
request.get('/api/merchants/shops/getBySupplierId?state=1&productBusiness=1', {
prefix: goodsApi,
data,
});
// 获取店铺详情 http://yapi.quantgroups.com/project/389/interface/api/57589
// 获取店铺详情 /yapi/project/389/interface/api/57589
export const apiGetShopDetail = data =>
request.post('/product/api/merchant/detail', {
prefix: goodsApi,
......
......@@ -7,7 +7,7 @@ import { de } from 'date-fns/locale';
const { goodsApi, apiPrefix, roleApi } = config;
console.log(apiPrefix, 'apiPrefix');
// [企业店铺]-列表查询
// http://yapi.quantgroups.com/project/389/interface/api/65284
// /yapi/project/389/interface/api/65284
export const setShopList = async params => {
params.page = params.current;
params.size = params.pageSize;
......@@ -21,7 +21,7 @@ export const setShopList = async params => {
};
// [企业店铺]-删除企业下面的店铺
// http://yapi.quantgroups.com/project/389/interface/api/65319
// /yapi/project/389/interface/api/65319
export const setShopDelete = async params => {
const data = await request.post(`${apiPrefix}/enterprise/shop/delete`, {
prefix: roleApi,
......@@ -31,7 +31,7 @@ export const setShopDelete = async params => {
};
// [企业店铺]-查询餐品类型
// http://yapi.quantgroups.com/project/389/interface/api/65314
// /yapi/project/389/interface/api/65314
export const mealTypeList = async params => {
const data = await request.post(`${apiPrefix}/enterprise/shop/mealType/list`, {
prefix: roleApi,
......@@ -41,7 +41,7 @@ export const mealTypeList = async params => {
};
// [企业店铺]-添加企业店铺
// http://yapi.quantgroups.com/project/389/interface/api/65304
// /yapi/project/389/interface/api/65304
export const shopAdd = async params => {
const data = await request.post(`${apiPrefix}/enterprise/shop/add`, {
prefix: roleApi,
......@@ -51,7 +51,7 @@ export const shopAdd = async params => {
};
// 企业店铺]-修改餐品类型
// http://yapi.quantgroups.com/project/389/interface/api/65309
// /yapi/project/389/interface/api/65309
export const apiShopUpdate = async params => {
const data = await request.post(`${apiPrefix}/enterprise/shop/update`, {
prefix: roleApi,
......@@ -61,7 +61,7 @@ export const apiShopUpdate = async params => {
};
// [企业客户]-列表查询
// http://yapi.quantgroups.com/project/389/interface/api/65324
// /yapi/project/389/interface/api/65324
export const apiEnterpriseList = async () => {
const data = await request.post(`${apiPrefix}/enterprise/pageList`, {
prefix: roleApi,
......@@ -73,7 +73,7 @@ export const apiEnterpriseList = async () => {
return data;
};
// [企业店铺]-可选择店铺列表
// http://yapi.quantgroups.com/project/389/interface/api/65524
// /yapi/project/389/interface/api/65524
export const apiSelectList = async params => {
const data = await request.post(`${apiPrefix}/enterprise/shop/select/list`, {
prefix: roleApi,
......@@ -83,7 +83,7 @@ export const apiSelectList = async params => {
};
// [企业店铺]-添加企业店铺校验是否是到店类型
// http://yapi.quantgroups.com/project/389/interface/api/65304
// /yapi/project/389/interface/api/65304
export const businessTypeCheck = async params => {
const data = await request.post(`${apiPrefix}/enterprise/shop/busineesType/check`, {
prefix: roleApi,
......@@ -93,7 +93,7 @@ export const businessTypeCheck = async params => {
};
// [企业店铺]-添加企业店铺
// http://yapi.quantgroups.com/project/389/interface/api/65304
// /yapi/project/389/interface/api/65304
export const apiShopAdd = async params => {
const data = await request.post(`${apiPrefix}/enterprise/shop/add`, {
prefix: roleApi,
......
......@@ -7,7 +7,7 @@ const { roleApi, apiPrefix } = config;
/**
* 获取企业客户列表
* http://yapi.quantgroups.com/project/389/interface/api/65324
* /yapi/project/389/interface/api/65324
*/
export async function apiEnterpriseList(data) {
return request.post(`${apiPrefix}/enterprise/pageList`, {
......@@ -17,7 +17,7 @@ export async function apiEnterpriseList(data) {
}
/**
* 获取企业客户详细
* http://yapi.quantgroups.com/project/389/interface/api/65339
* /yapi/project/389/interface/api/65339
*/
export async function apiEnterpriseInfo(id) {
return request.get(`${apiPrefix}/enterprise/info?id=${id}`, {
......@@ -26,7 +26,7 @@ export async function apiEnterpriseInfo(id) {
}
/**
* 添加企业客户
* http://yapi.quantgroups.com/project/389/interface/api/65329
* /yapi/project/389/interface/api/65329
*/
export async function apiNewEnterprise(data) {
return request.post(`${apiPrefix}/enterprise/save`, {
......@@ -36,7 +36,7 @@ export async function apiNewEnterprise(data) {
}
/**
* 编辑企业客户
* http://yapi.quantgroups.com/project/389/interface/api/65334
* /yapi/project/389/interface/api/65334
*/
export async function apiEditEnterprise(data) {
return request.post(`${apiPrefix}/enterprise/update`, {
......@@ -47,7 +47,7 @@ export async function apiEditEnterprise(data) {
/**
* 查询自提点列表
* http://yapi.quantgroups.com/project/389/interface/api/65494
* /yapi/project/389/interface/api/65494
*/
export async function apiEnterprisePickSelf() {
return request.get(`${apiPrefix}/selfPickUpLocation/list`, {
......
......@@ -4,7 +4,7 @@ import config from '@/../config/env.config';
const { roleApi, apiPrefix } = config;
/**
* 获取企业外卖商品列表
* http://yapi.quantgroups.com/project/389/interface/api/64794
* /yapi/project/389/interface/api/64794
*/
export async function apiTakeawayList(param) {
const res = await request.post(`${apiPrefix}/product/enterprise/main/pageList`, {
......@@ -15,7 +15,7 @@ export async function apiTakeawayList(param) {
}
/**
* 获取企业虚拟商品列表
* http://yapi.quantgroups.com/project/389/interface/api/64794
* /yapi/project/389/interface/api/64794
*/
export async function apiVirtualList(param) {
return request.post(`${apiPrefix}/product/enterprise/virtual/pageList`, {
......@@ -25,7 +25,7 @@ export async function apiVirtualList(param) {
}
/**
* 企业客户列表
* http://yapi.quantgroups.com/project/389/interface/api/65324
* /yapi/project/389/interface/api/65324
*/
export async function apiEnterpriseList(param) {
return request.post(`${apiPrefix}/enterprise/pageList`, {
......@@ -35,7 +35,7 @@ export async function apiEnterpriseList(param) {
}
/**
* 模糊查询店铺列表
* http://yapi.quantgroups.com/project/389/interface/api/65289
* /yapi/project/389/interface/api/65289
*/
export async function apiShopList(param) {
return request.post(`${apiPrefix}/shops/getListByName`, {
......@@ -45,7 +45,7 @@ export async function apiShopList(param) {
}
/**
* 企业团餐-查询餐段配置
* http://yapi.quantgroups.com/project/389/interface/api/65444
* /yapi/project/389/interface/api/65444
*/
export async function apiMealTimePeriod(param) {
return request.post(`${apiPrefix}/product/enterprise/getMealTimePeriod`, {
......@@ -55,7 +55,7 @@ export async function apiMealTimePeriod(param) {
}
/**
* 企业团餐->信息修改
* http://yapi.quantgroups.com/project/389/interface/api/65099
* /yapi/project/389/interface/api/65099
*/
export async function apiMealInfoUpdate(param) {
return request.post(`${apiPrefix}/product/enterprise/main/update`, {
......@@ -65,7 +65,7 @@ export async function apiMealInfoUpdate(param) {
}
/**
* 企业团餐->删除外卖商品
* http://yapi.quantgroups.com/project/389/interface/api/65109
* /yapi/project/389/interface/api/65109
*/
export async function apiTakeawayGoodsDel(param) {
return request.post(`${apiPrefix}/product/enterprise/main/deleteById`, {
......@@ -75,7 +75,7 @@ export async function apiTakeawayGoodsDel(param) {
}
/**
* 企业团餐->删除虚拟商品
* http://yapi.quantgroups.com/project/389/interface/api/65109
* /yapi/project/389/interface/api/65109
*/
export async function apiVirtualGoodsDel(param) {
return request.post(`${apiPrefix}/product/enterprise/virtual/deleteById`, {
......@@ -85,7 +85,7 @@ export async function apiVirtualGoodsDel(param) {
}
/**
* 企业团餐->查询自提点列表
* http://yapi.quantgroups.com/project/389/interface/api/65494
* /yapi/project/389/interface/api/65494
*/
export async function apiPickSelfList() {
return request.get(`${apiPrefix}/selfPickUpLocation/list`, {
......@@ -94,7 +94,7 @@ export async function apiPickSelfList() {
}
/**
* 企业团餐->根据企业ID查询已选择自提点
* http://yapi.quantgroups.com/project/389/interface/api/65449
* /yapi/project/389/interface/api/65449
*/
export async function apiSelPickSelfList(param) {
return request.post(`${apiPrefix}/product/enterprise/queryByEnterpriseId`, {
......@@ -104,7 +104,7 @@ export async function apiSelPickSelfList(param) {
}
/**
* 企业团餐->查询外卖商品 - 选择商品弹窗
* http://yapi.quantgroups.com/project/389/interface/api/65479
* /yapi/project/389/interface/api/65479
*/
export async function apiSelGoodsList(param) {
return request.post(`${apiPrefix}/product/enterprise/sku/page`, {
......@@ -114,7 +114,7 @@ export async function apiSelGoodsList(param) {
}
/**
* 企业团餐->查询商品 - 选择虚拟商品弹窗
* http://yapi.quantgroups.com/project/389/interface/api/65479
* /yapi/project/389/interface/api/65479
*/
export async function apiSelVirtualGoodsList(param) {
return request.post(`${apiPrefix}/product/enterprise/virtual/sku/page`, {
......@@ -124,7 +124,7 @@ export async function apiSelVirtualGoodsList(param) {
}
/**
* 企业团餐->添加外卖商品保存
* http://yapi.quantgroups.com/project/389/interface/api/65094
* /yapi/project/389/interface/api/65094
*/
export async function apiSaveGoodsList(param) {
return request.post(`${apiPrefix}/product/enterprise/add`, {
......@@ -134,7 +134,7 @@ export async function apiSaveGoodsList(param) {
}
/**
* 企业团餐->添加虚拟商品保存
* http://yapi.quantgroups.com/project/389/interface/api/65484
* /yapi/project/389/interface/api/65484
*/
export async function apiSaveVirtualGoodsList(param) {
return request.post(`${apiPrefix}/product/enterprise/virtual/add`, {
......@@ -144,7 +144,7 @@ export async function apiSaveVirtualGoodsList(param) {
}
/**
* 企业团餐->虚拟品->根据企业ID查询店铺列表
* http://yapi.quantgroups.com/project/389/interface/api/65504
* /yapi/project/389/interface/api/65504
*/
export async function apiShopListByEnterpriseID(param) {
return request.post(`${apiPrefix}/product/enterprise/virtual/shops`, {
......@@ -154,7 +154,7 @@ export async function apiShopListByEnterpriseID(param) {
}
/**
* 企业团餐->根据企业ID+自提点列表查询店铺列表
* http://yapi.quantgroups.com/project/389/interface/api/65539
* /yapi/project/389/interface/api/65539
*/
export async function apiShopListByPickSelfID(param) {
return request.post(`${apiPrefix}/product/enterprise/queryByEnterpriseIdAndPickSelfId`, {
......@@ -164,7 +164,7 @@ export async function apiShopListByPickSelfID(param) {
}
/**
* 企业团餐->根据企业ID 获取企业客户详细
* http://yapi.quantgroups.com/project/389/interface/api/65339
* /yapi/project/389/interface/api/65339
*/
export async function apiEnterpriseInfo(id) {
return request.get(`${apiPrefix}/enterprise/info?id=${id}`, {
......@@ -173,7 +173,7 @@ export async function apiEnterpriseInfo(id) {
}
/**
* 企业团餐->虚拟商品 校验是否可修改餐段和可售日期
* http://yapi.quantgroups.com/project/389/interface/api/65674
* /yapi/project/389/interface/api/65674
*/
export async function apiCheckInfo(data) {
return request.post(`${apiPrefix}/product/enterprise/virtual/addParamCheck`, {
......
......@@ -125,7 +125,7 @@ export function apiDelayDeliverGoods(data) {
* 多物流发货-查询多物流订单信息
* @param {*} params
* @returns
* @see http://yapi.quantgroups.com/project/389/interface/api/45840
* @see /yapi/project/389/interface/api/45840
*/
export function apiQueryOrderInfo(params) {
return request.get('/api/merchants/orders/deliveries/packages/detail', {
......@@ -137,7 +137,7 @@ export function apiQueryOrderInfo(params) {
* 多物流发货-新建发货/更新发货信息
* @param {*} data
* @returns
* @see http://yapi.quantgroups.com/project/389/interface/api/45816
* @see /yapi/project/389/interface/api/45816
*/
export function apiDeliveriesAdd(data) {
return request.post('/api/merchants/orders/deliveries/add', {
......@@ -155,7 +155,7 @@ export function apiDeliveriesEdit(data) {
/**
* 多物流发货-查询物流轨迹
* @see http://yapi.quantgroups.com/project/389/interface/api/46120
* @see /yapi/project/389/interface/api/46120
*/
export function apiDeliveriesTraceList(data) {
......
......@@ -8,7 +8,7 @@ const SIZE = 20;
/**
* @name 子账号列表
* @param {Object} params
* @see http://yapi.quantgroups.com/project/509/interface/api/42832
* @see /yapi/project/509/interface/api/42832
*/
export function getUserList({ page = PAGE, size = SIZE }) {
return request.post(`/v2/user/list/${page}/${size}`, {
......@@ -20,7 +20,7 @@ export function getUserList({ page = PAGE, size = SIZE }) {
* @name 子账号详情
* @param {Object} params
* @param {number} params.id 子账号id
* @see http://yapi.quantgroups.com/project/509/interface/api/42856
* @see /yapi/project/509/interface/api/42856
*/
export function getUserDetail({ id }) {
return request.get(`/v2/user/info/${id}`);
......@@ -28,7 +28,7 @@ export function getUserDetail({ id }) {
/**
* @name 新增/修改子账号
* @see http://yapi.quantgroups.com/project/509/interface/api/42896
* @see /yapi/project/509/interface/api/42896
*/
export function addUser(params) {
return request.post('/v2/user/addnew', {
......@@ -38,7 +38,7 @@ export function addUser(params) {
/**
* @name 修改子账号
* @see http://yapi.quantgroups.com/project/509/interface/api/43344
* @see /yapi/project/509/interface/api/43344
*/
export function updateUser(params) {
return request.post('/v2/user/update', {
......@@ -50,7 +50,7 @@ export function updateUser(params) {
* @name 用户禁用
* @param {Object} params
* @param {number} params.id
* @see http://yapi.quantgroups.com/project/509/interface/api/42864
* @see /yapi/project/509/interface/api/42864
*/
export function userDisabled({ id }) {
return request.post(`/v2/user/disabled/${id}`);
......@@ -60,7 +60,7 @@ export function userDisabled({ id }) {
* @name 用户启用
* @param {Object} params
* @param {number} params.id
* @see http://yapi.quantgroups.com/project/509/interface/api/42880
* @see /yapi/project/509/interface/api/42880
*/
export function userEnabled({ id }) {
return request.post(`/v2/user/enabled/${id}`);
......@@ -70,7 +70,7 @@ export function userEnabled({ id }) {
* @name 删除用户
* @param {Object} params
* @param {number} params.id
* @see http://yapi.quantgroups.com/project/509/interface/api/43120
* @see /yapi/project/509/interface/api/43120
*/
export function userDelete({ id }) {
return request.post(`/v2/user/delete/${id}`);
......@@ -80,7 +80,7 @@ export function userDelete({ id }) {
* @name 重置/修改密码
* @param {Object} params
* @param {string} params.password 确认密码
* @see http://yapi.quantgroups.com/project/509/interface/api/43128
* @see /yapi/project/509/interface/api/43128
*/
export function resetPassword(params) {
return request.post('/v2/user/password/resetpassword', {
......@@ -91,7 +91,7 @@ export function resetPassword(params) {
/**
* @name 角色列表-分页
* @param {Object} params
* @see http://yapi.quantgroups.com/project/509/interface/api/41816
* @see /yapi/project/509/interface/api/41816
*/
export function getRoleList({ page, size }) {
return request.post(`/v2/role/list/${page}/${size}?appCode=${APP_CODE}`, {
......@@ -103,7 +103,7 @@ export function getRoleList({ page, size }) {
* @name 角色详情
* @param {Object} params
* @param {number} params.id 角色id
* @see http://yapi.quantgroups.com/project/509/interface/api/41848
* @see /yapi/project/509/interface/api/41848
*
*/
export async function getRoleDetail({ id }) {
......@@ -113,7 +113,7 @@ export async function getRoleDetail({ id }) {
/**
* @name 新增角色
* @param {Object} params
* @see http://yapi.quantgroups.com/project/509/interface/api/42920
* @see /yapi/project/509/interface/api/42920
*/
export async function addResource(params) {
return request.post('/v2/role/addResource', {
......@@ -124,7 +124,7 @@ export async function addResource(params) {
/**
* @name 修改角色
* @param {Object} params
* @see http://yapi.quantgroups.com/project/509/interface/api/42928
* @see /yapi/project/509/interface/api/42928
*/
export async function modifyRole(params) {
return request.post('/v2/role/updateResource', params);
......@@ -134,7 +134,7 @@ export async function modifyRole(params) {
* @name 删除角色
* @param {Object} params
* @param {number} params.id 角色id
* @see http://yapi.quantgroups.com/project/509/interface/api/41832
* @see /yapi/project/509/interface/api/41832
*/
export async function deleteRole({ id }) {
return request.post(`/v2/role/delete/${id}`);
......
......@@ -3,7 +3,7 @@ import request from '@/utils/request';
/**
* 手机号验证码登录
* http://yapi.quantgroups.com/project/509/interface/api/41776
* /yapi/project/509/interface/api/41776
*/
export async function fakeAccountLogin(params) {
return request('/v2/oauth/login', {
......@@ -17,7 +17,7 @@ export async function getFakeCaptcha(mobile) {
}
/**
* 获取短信验证码
* http://yapi.quantgroups.com/project/509/interface/api/65044
* /yapi/project/509/interface/api/65044
*/
export function apiSMSCaptcha(params) {
return request('/v2/sms/send', {
......
......@@ -8,7 +8,7 @@ export const getSocketUrl = ({ token, channelId }) =>
/**
* @name 商户消息列表
* @see http://yapi.quantgroups.com/project/193/interface/api/41792
* @see /yapi/project/193/interface/api/41792
*/
export function apiGetBussinessMsgList(data, params) {
return request.post('/v1/send/message/getBussinessMsgList', {
......@@ -20,7 +20,7 @@ export function apiGetBussinessMsgList(data, params) {
/**
* @name 获取未读消息数量
* @see http://yapi.quantgroups.com/project/193/interface/api/42792
* @see /yapi/project/193/interface/api/42792
*/
export function apiGetBusinessMsgUnReadCount(data) {
return request.post('/v1/send/message/getBusinessMsgUnReadCount', {
......@@ -31,7 +31,7 @@ export function apiGetBusinessMsgUnReadCount(data) {
/**
* @name 设置消息为已读
* @see http://yapi.quantgroups.com/project/193/interface/api/41808
* @see /yapi/project/193/interface/api/41808
*/
export function apiUpdageBusinessMsgStatus(data) {
return request.post('/v1/send/message/updateBussinessMsgReadStatus', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment