123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- module.exports = {
- create: {
- requestBody: [
- "!mobile",
- "!password",
- "!province",
- "!city",
- "!set",
- "pay_type",
- "!name",
- "id_card",
- "level",
- "points",
- "recommend",
- "r_mobile",
- "wxaccount",
- "create_time",
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "!mobile",
- "!password",
- "!province",
- "!city",
- "!set",
- "pay_type",
- "!name",
- "id_card",
- "level",
- "points",
- "recommend",
- "r_mobile",
- "wxaccount",
- "create_time",
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- mobile: "mobile",
- province: "province",
- city: "city",
- pay_type: "pay_type",
- name: "name",
- id_card: "id_card",
- level: "level",
- recommend: "%recommend%",
- r_mobile: "r_mobile",
- car_show: "car_show",
- stockholder: "stockholder",
- wxaccount: "%wxaccount%",
- set: "set",
- status: "status",
- "create_time@start": "create_time@start",
- "create_time@end": "create_time@end",
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- // 修改密码
- passwd: {
- params: ["!id"],
- requestBody: ["!password"],
- service: "passwd",
- },
- group: {
- parameters: {
- query: {
- r_mobile: "r_mobile",
- province: "province",
- set: "set",
- "create_time@start": "create_time@start",
- "create_time@end": "create_time@end",
- },
- },
- service: "group",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- // count: true,
- },
- },
- // 用户审核
- check: {
- params: ["!id"],
- requestBody: ["!status"],
- service: "check",
- },
- };
|