You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
701 B
49 lines
701 B
import request from "@/utils/request.js"; |
|
import {host} from "@/config/host.js"; |
|
|
|
/** |
|
* 登录 |
|
* @param {Object} data |
|
*/ |
|
export function testLogin(data) { |
|
|
|
return request({ |
|
url: `${host}/user/gettoken`, |
|
method: "get", |
|
data |
|
}); |
|
} |
|
export function login(data) { |
|
|
|
return request({ |
|
url: `${host}`, |
|
method: "method", |
|
data |
|
}); |
|
} |
|
|
|
|
|
export function userDetail(data) { |
|
|
|
return request({ |
|
url: `${host}/user/detail`, |
|
method: "post", |
|
data |
|
}); |
|
} |
|
export function userExtends(data) { |
|
|
|
return request({ |
|
url: `${host}/user/user-count`, |
|
method: "post", |
|
data |
|
}); |
|
} |
|
export function userCoupons(data) { |
|
|
|
return request({ |
|
url: `${host}/user/coupons-list`, |
|
method: "get", |
|
data |
|
}); |
|
} |