123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- module.exports = {
- create: {
- requestBody: [
- "!name",
- "!password",
- "cardnumber",
- "phone",
- "email",
- "addr",
- "img_path",
- "is_qy",
- "cardfile_a",
- "cardfile_b",
- "img_qy",
- "resume",
- "major",
- "institution_type",
- "institution_name",
- "institution_code",
- "institution_nature",
- "office_phone",
- "profession",
- "status",
- "is_del",
- "role",
- "token",
- 'deptname',
- 'pid',
- 'code',
- "columnid",
- "openid"
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "name",
- "password",
- "cardnumber",
- "phone",
- "email",
- "addr",
- "img_path",
- "is_qy",
- "cardfile_a",
- "cardfile_b",
- "img_qy",
- "resume",
- "major",
- "institution_type",
- "institution_name",
- "institution_code",
- "institution_nature",
- "office_phone",
- "profession",
- "status",
- "is_del",
- "role",
- "token",
- 'deptname',
- 'pid',
- 'code',
- "columnid",
- "openid"
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- name: "name",
- password: "password",
- cardnumber: "cardnumber",
- phone: "phone",
- email: "email",
- addr: "addr",
- img_path: "img_path",
- is_qy: "is_qy",
- cardfile_a: "cardfile_a",
- cardfile_b: "cardfile_b",
- img_qy: "img_qy",
- resume: "resume",
- major: "major",
- institution_type: "institution_type",
- institution_name: "institution_name",
- institution_code: "institution_code",
- institution_nature: "institution_nature",
- office_phone: "office_phone",
- profession: "profession",
- status: "status",
- is_del: "is_del",
- role: "role",
- token: "token",
- deptname: 'deptname',
- pid: 'pid',
- code: 'code',
- columnidg :"columnid",
- openid:"openid"
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- login: {
- requestBody: ["phone", "password", "role"],
- service: "login",
- },
- };
|