123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- const baseUrl = '/api'
- const common = '/common'
- const guest = '/guest'
-
- const $api = {
- login: { // 登陆
- signin: {
- method: 'post',
- url: `${baseUrl}${guest}/signin`
- }
- },
- system: {
- init: { // 初始化菜单
- method: 'get',
- url: `${baseUrl}${common}/system/init`
- }
- },
- channelManager: {
- getChannelList: { // 渠道列表
- method: 'get',
- url: `${baseUrl}${common}/`
- },
- },
- caseManager: {
- getCaseList: { // 获取案场列表
- method: 'get',
- url: `${baseUrl}${common}/case/info`
- },
- addCase: { // 新增案场
- method: 'post',
- url: `${baseUrl}${common}/case/info`
- },
- getCaseInfo: { // 查询案场
- method: 'get',
- url: `${baseUrl}${common}/case/info/:id`
- },
- editCase: { // 编辑案场
- method: 'put',
- url: `${baseUrl}${common}/case/info/:id`
- },
- getKeyList: { // 获取钥匙列表
- method: 'get',
- url: `${baseUrl}${common}/case/key`
- },
- addKey: { // 新增钥匙
- method: 'post',
- url: `${baseUrl}${common}/case/key`
- },
- cancelKey: { // 取消钥匙
- method: 'put',
- url: `${baseUrl}${common}/case/unlock/:id`
- },
- getCaseAreaList: { // 获取案场区域列表
- method: 'get',
- url: `${baseUrl}${common}/case/area`
- },
- addCaseArea: { // 新增案场区域
- method: 'post',
- url: `${baseUrl}${common}/case/area`
- },
- deleteCaseArea: { // 删除案场区域
- method: 'delete',
- url: `${baseUrl}${common}/case/area/:id`
- },
- getCaseAreaInfo: { // 获取案场区域信息
- method: 'get',
- url: `${baseUrl}${common}/case/area/:id`
- },
- editCaseArea: { // 更新案场区域信息
- method: 'put',
- url: `${baseUrl}${common}/case/area`
- },
- getCaseTableList: { // 获取案场桌位列表
- method: 'get',
- url: `${baseUrl}${common}/case/table`
- },
- addCaseTable: { // 新增案场桌位
- method: 'post',
- url: `${baseUrl}${common}/case/table`
- },
- getCaseTableInfo: { // 查询案场桌位信息
- method: 'get',
- url: `${baseUrl}${common}/case/table/:id`
- },
- editCaseTable: { // 更新案场桌位信息
- method: 'put',
- url: `${baseUrl}${common}/case/table`
- },
- deleteCaseTable: { // 删除案场桌位信息
- method: 'delete',
- url: `${baseUrl}${common}/case/table/:id`
- },
- getCaseTagList: { // 获取案场标签列表
- method: 'get',
- url: `${baseUrl}${common}/case/tag`
- },
- addCaseTag: { // 新增案场标签
- method: 'post',
- url: `${baseUrl}${common}/case/tag`
- },
- getTagInfo: { // 获取案场标签信息
- method: 'get',
- url: `${baseUrl}${common}/case/tag/:id`
- },
- deleteCaseTag: { // 删除案场标签
- method: 'delete',
- url: `${baseUrl}${common}/case/tag/:id`
- },
- },
- goodsManager: {
- getGoodsSpecList: { // 商品规格列表
- method: 'get',
- url: `${baseUrl}${common}/spec/goods`
- },
- addGoodsSpec: { // 新增商品规格
- method: 'post',
- url: `${baseUrl}${common}/spec/goods`
- },
- getGoodsSpecById: { // 根据id获取商品规格
- method: 'get',
- url: `${baseUrl}${common}/spec/goods/:id`
- },
- editGoodsSpec: { // 编辑商品规格
- method: 'put',
- url: `${baseUrl}${common}/spec/goods/:id`
- },
- deleteGoodsSpec: { // 删除商品规格
- method: 'delete',
- url: `${baseUrl}${common}/spec/goods/:id`
- },
- getGoodsTypeList: { // 商品种类列表
- method: 'get',
- url: `${baseUrl}${common}/type/goods`
- },
- addGoodsType: { // 新增商品种类
- method: 'post',
- url: `${baseUrl}${common}/type/goods`
- },
- getGoodsTypeById: { // 根据id获取商品种类
- method: 'get',
- url: `${baseUrl}${common}/type/goods/:id`
- },
- editGoodsType: { // 编辑商品种类
- method: 'put',
- url: `${baseUrl}${common}/type/goods/:id`
- },
- deleteGoodsType: { // 删除商品种类
- method: 'delete',
- url: `${baseUrl}${common}/type/goods/:id`
- },
- },
- cms: {
- location: { // 图片位置
- method: 'get',
- url: `${baseUrl}${common}/cms/location`
- },
- imageList: { // 轮播图列表
- method: 'get',
- url: `${baseUrl}${common}/cms/image`
- },
- imageDetail: { // 轮播图详情
- method: 'get',
- url: `${baseUrl}${common}/cms/image/:id`
- },
- addImage: { // 添加轮播图
- method: 'post',
- url: `${baseUrl}${common}/cms/image`
- },
- editImage: { // 编辑轮播图
- method: 'put',
- url: `${baseUrl}${common}/cms/image/:id`
- },
- deleteDetail: { // 删除轮播图
- method: 'delete',
- url: `${baseUrl}${common}/cms/image/:id`
- },
- case: { // 首页案场列表
- method: 'get',
- url: `${baseUrl}${common}/cms/case`
- },
- caseDetail: { // 首页案场详情
- method: 'get',
- url: `${baseUrl}${common}/cms/case/:id`
- },
- addCase: { // 添加首页案场
- method: 'post',
- url: `${baseUrl}${common}/cms/case`
- },
- editCase: { // 添加首页案场
- method: 'put',
- url: `${baseUrl}${common}/cms/case/:id`
- },
- deleteCase: { // 添加首页案场
- method: 'delete',
- url: `${baseUrl}${common}/cms/case/:id`
- },
- info: { // 首页消息列表
- method: 'get',
- url: `${baseUrl}${common}/cms/info`
- },
- infoDetail: { // 首页消息详情
- method: 'get',
- url: `${baseUrl}${common}/cms/info/:id`
- },
- addInfo: { // 新增首页消息
- method: 'post',
- url: `${baseUrl}${common}/cms/info`
- },
- editInfo: { // 编辑首页消息
- method: 'put',
- url: `${baseUrl}${common}/cms/info/:id`
- },
- deleteInfo: { // 删除首页消息
- method: 'delete',
- url: `${baseUrl}${common}/cms/info/:id`
- },
- news: { // 咨询列表
- method: 'get',
- url: `${baseUrl}${common}/cms/news`
- },
- newsDetail: { // 咨询详情
- method: 'get',
- url: `${baseUrl}${common}/cms/news/:id`
- },
- addNews: { // 新增咨询
- method: 'post',
- url: `${baseUrl}${common}/cms/news`
- },
- editNews: { // 编辑咨询
- method: 'put',
- url: `${baseUrl}${common}/cms/news/:id`
- },
- deleteNews: { // 删除咨询
- method: 'delete',
- url: `${baseUrl}${common}/cms/news/:id`
- }
- },
- file: {
- image: { // 图片上传
- method: 'post',
- url: `${baseUrl}${common}/file`
- }
- },
- role: {
- list: {
- method: 'get',
- url: `${baseUrl}${common}/role`
- },
- info: {
- method: 'get',
- url: `${baseUrl}${common}/role/:id`
- },
- add: {
- method: 'post',
- url: `${baseUrl}${common}/role`
- },
- update: {
- method: 'put',
- url: `${baseUrl}${common}/role`
- },
- delete: {
- method: 'delete',
- url: `${baseUrl}${common}/role/:id`
- },
- },
- }
- export default $api
|