upload project source code
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
import { l as httpRequest } from "./index.CMd5bD1r.js";
|
||||
const API_PATH = "/yifan/yifan_membership";
|
||||
const YifanMembershipAPI = {
|
||||
getDiscountConfig() {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/discount-config`,
|
||||
method: "get"
|
||||
});
|
||||
},
|
||||
updateDiscountConfig(body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/discount-config`,
|
||||
method: "put",
|
||||
data: body
|
||||
});
|
||||
},
|
||||
getServicePriceConfig() {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/service-price-config`,
|
||||
method: "get"
|
||||
});
|
||||
},
|
||||
updateServicePriceConfig(body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/service-price-config`,
|
||||
method: "put",
|
||||
data: body
|
||||
});
|
||||
},
|
||||
getMemberList(query) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/member-list`,
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
},
|
||||
getOperationRecords(query) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/operation-records`,
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
},
|
||||
adjustQuota(body) {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/quota/adjust`,
|
||||
method: "put",
|
||||
data: body
|
||||
});
|
||||
},
|
||||
getMyBenefits() {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/my-benefits`,
|
||||
method: "get"
|
||||
});
|
||||
},
|
||||
consumeDailyDetect() {
|
||||
return httpRequest({
|
||||
url: `${API_PATH}/daily-detect/consume`,
|
||||
method: "post"
|
||||
});
|
||||
}
|
||||
};
|
||||
export {
|
||||
YifanMembershipAPI as Y
|
||||
};
|
||||
Reference in New Issue
Block a user