|
@@ -1,6 +1,6 @@
|
|
|
module.exports = {
|
|
|
create: {
|
|
|
- requestBody: ["!subid","subname", "!teacherid","teacher", "reason"],
|
|
|
+ requestBody: ["!subid", "subname", "!teacherid", "teacher", "reason"],
|
|
|
},
|
|
|
destroy: {
|
|
|
params: ["!id"],
|
|
@@ -8,7 +8,16 @@ module.exports = {
|
|
|
},
|
|
|
update: {
|
|
|
params: ["!id"],
|
|
|
- requestBody: ["number", "!subid","subname", "!teacherid","teacher", "status", "reason", 'start'],
|
|
|
+ requestBody: [
|
|
|
+ "number",
|
|
|
+ "!subid",
|
|
|
+ "subname",
|
|
|
+ "!teacherid",
|
|
|
+ "teacher",
|
|
|
+ "status",
|
|
|
+ "reason",
|
|
|
+ "start",
|
|
|
+ ],
|
|
|
},
|
|
|
show: {
|
|
|
parameters: {
|
|
@@ -21,10 +30,10 @@ module.exports = {
|
|
|
query: {
|
|
|
number: "number",
|
|
|
subid: "subid",
|
|
|
- subname:'subname',
|
|
|
- teacher:"teacher",
|
|
|
+ subname: "subname",
|
|
|
+ teacher: "teacher",
|
|
|
teacherid: "teacherid",
|
|
|
- start:"start",
|
|
|
+ start: "start",
|
|
|
status: "status",
|
|
|
},
|
|
|
},
|
|
@@ -36,4 +45,8 @@ module.exports = {
|
|
|
count: true,
|
|
|
},
|
|
|
},
|
|
|
+ personcount: {
|
|
|
+ requestBody: ["!teacherid", "teacher", "!studentid", "student"],
|
|
|
+ service: "personcount",
|
|
|
+ },
|
|
|
};
|