12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- const baseUrl = '/api'
- const $api = {
- login: {
- signin: {
- method: 'post',
- url: `${baseUrl}/guest/signin`
- }
- },
- system: {
- init: {
- method: 'get',
- url: `${baseUrl}/common/system/init`
- },
- getGoodsSpecList: {
- method: 'get',
- url: `${baseUrl}/common/spec/goods`
- },
- addGoodsSpec: {
- method: 'POST',
- url: `${baseUrl}/common/spec/goods`
- },
- editGoodsSpec: {
- method: 'put',
- url: `${baseUrl}/common/spec/goods`
- }
- },
- 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
|