123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- module.exports = {
- create: {
- requestBody: [
- "!name",
- "!id_number",
- "!phone",
- "gender",
- "nation",
- "school_name",
- "schid",
- "faculty",
- "major",
- "edua_level",
- "edua_system",
- "entry_year",
- "finish_year",
- "school_job",
- "qq",
- "email",
- "openid",
- "family_place",
- "family_is_hard",
- "have_grant",
- "job",
- "planyearid",
- "planid",
- "termid",
- "batchid",
- "classid",
- "bedroomid",
- "bedroom",
- "is_fine",
- "selfscore",
- "score",
- "diy",
- "isComming",
- "type",
- "status",
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "name",
- "id_number",
- "phone",
- "gender",
- "nation",
- "school_name",
- "schid",
- "faculty",
- "major",
- "edua_level",
- "edua_system",
- "entry_year",
- "finish_year",
- "school_job",
- "qq",
- "email",
- "openid",
- "family_place",
- "family_is_hard",
- "have_grant",
- "job",
- "planyearid",
- "planid",
- "termid",
- "batchid",
- "classid",
- "bedroomid",
- "bedroom",
- "is_fine",
- "selfscore",
- "score",
- "diy",
- "isComming",
- "type",
- "status",
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- name: "name",
- id_number: "id_number",
- phone: "phone",
- gender: "gender",
- nation: "nation",
- school_name: "school_name",
- schid: "schid",
- faculty: "faculty",
- major: "major",
- edua_level: "edua_level",
- edua_system: "edua_system",
- entry_year: "entry_year",
- finish_year: "finish_year",
- school_job: "school_job",
- qq: "qq",
- email: "email",
- openid: "openid",
- family_place: "family_place",
- family_is_hard: "family_is_hard",
- have_grant: "have_grant",
- job: "job",
- planyearid: "planyearid",
- planid: "planid",
- termid: "termid",
- batchid: "batchid",
- classid: "classid",
- bedroomid: "bedroomid",
- bedroom: "bedroom",
- is_fine: "is_fine",
- selfscore: "selfscore",
- score: "score",
- diy: "diy",
- isComming: "isComming",
- type: "type",
- is_find_status: "is_find_status",
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- finestudent: {
- parameters: { params: ["!id"] },
- service: "getFineStudent",
- },
- exportStudent: {
- requestBody: ["planid", "termid", "batchid", "classid", "model", 'missionid'],
- service: "exportStudent",
- },
- toExport: {
- requestBody: ["planid", "termid", "batchid", "classid", "model", 'isComming'],
- service: "toExport",
- },
- arrangeNumber: {
- parameters: {
- query: { classid: "classid" },
- },
- service: "arrangeNumber",
- },
- printCert: {
- requestBody: ["ids"],
- service: "printCert",
- },
- getSchoolStudent: {
- parameters: {
- query: { planid: "planid" },
- },
- service: "getSchoolStudent",
- },
- };
|