123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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: 'get',
- url: `${baseUrl}/common/cms/image`
- }
- },
- file: {
- image: {
- method: 'post',
- url: `${baseUrl}/common/file`
- }
- }
- }
- export default $api
|