1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- const baseUrl = '/api'
- const $api = {
- login: {
- signin: {
- method: 'post',
- url: `${baseUrl}/guest/signin`
- }
- },
- system: {
- init: {
- method: 'get',
- url: `${baseUrl}/common/system/init`
- }
- },
- goodsManager: {
- getGoodsSpecList: {
- method: 'get',
- url: `${baseUrl}/common/spec/goods`
- },
- addGoodsSpec: {
- method: 'POST',
- url: `${baseUrl}/common/spec/goods`
- },
- getGoodsSpecById: {
- 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`
- }
- },
- cms: {
- location: {
- method: 'get',
- url: `${baseUrl}/common/cms/location`
- },
- imageList: {
- method: 'get',
- url: `${baseUrl}/common/cms/image`
- },
- addImage: {
- method: 'post',
- url: `${baseUrl}/common/cms/image`
- },
- editImage: {
- method: 'post',
- url: `${baseUrl}/common/cms/image`
- }
- },
- file: {
- image: {
- method: 'post',
- url: `${baseUrl}/common/file`
- }
- }
- }
- export default $api
|