56 lines
1.6 KiB
TypeScript
56 lines
1.6 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
// 门店管理 VO
|
|
export interface LitemallBrandVO {
|
|
id: number // 门店id
|
|
userId: string // 门店管理员id
|
|
phone: string // 联系电话
|
|
name: string // 门店名称
|
|
mail: string // 门店邮箱
|
|
picUrl: string // 门店图片
|
|
address: string // 门店地址
|
|
depict: string // 门店简介
|
|
status: number // 门店状态
|
|
weight: number // 权重
|
|
remark: string // 备注
|
|
}
|
|
|
|
// 门店管理 API
|
|
export const LitemallBrandApi = {
|
|
// 查询门店管理分页
|
|
getLitemallBrandPage: async (params: any) => {
|
|
return await request.get({ url: `/subscribe/litemall-brand/page`, params })
|
|
},
|
|
|
|
// 查询门店管理详情
|
|
getLitemallBrand: async (id: number) => {
|
|
return await request.get({ url: `/subscribe/litemall-brand/get?id=` + id })
|
|
},
|
|
|
|
// 新增门店管理
|
|
createLitemallBrand: async (data: LitemallBrandVO) => {
|
|
return await request.post({ url: `/subscribe/litemall-brand/create`, data })
|
|
},
|
|
|
|
// 修改门店管理
|
|
updateLitemallBrand: async (data: LitemallBrandVO) => {
|
|
return await request.put({ url: `/subscribe/litemall-brand/update`, data })
|
|
},
|
|
|
|
// 删除门店管理
|
|
deleteLitemallBrand: async (id: number) => {
|
|
return await request.delete({ url: `/subscribe/litemall-brand/delete?id=` + id })
|
|
},
|
|
|
|
// 导出门店管理 Excel
|
|
exportLitemallBrand: async (params) => {
|
|
return await request.download({ url: `/subscribe/litemall-brand/export-excel`, params })
|
|
},
|
|
|
|
// 查询机构名称数据
|
|
getOrganizations: async () => {
|
|
return await request.get({ url: `/subscribe/litemall-brand/getOrganization`})
|
|
},
|
|
|
|
}
|