1234567891011121314151617181920212223242526272829303132 |
- const baseUrl = '/check-api'
- const wechat = ''
-
- const $api = {
- lottery: {
- userInfo: {
- method: 'get',
- url: `${baseUrl}${wechat}/user`
- },
- getPrize: {
- method: 'get',
- url: `${baseUrl}${wechat}/luckdraw/:id`
- },
- setPrize: {
- method: 'post',
- url: `${baseUrl}${wechat}/luckdraw/:id`
- },
- getRecord: {
- method: 'get',
- url: `${baseUrl}${wechat}/record`
- },
- userRecordList: {
- method: 'get',
- url: `${baseUrl}${wechat}/user/record`
- },
- userRecordDetail: {
- method: 'get',
- url: `${baseUrl}${wechat}/user/record/:id`
- }
- }
- }
- export default $api
|