123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- module.exports = {
- create: {
- requestBody: [
- 'name',
- 'phone',
- 'password',
- 'card',
- 'birth',
- 'qqwx',
- 'email',
- 'zwzc',
- 'education',
- 'school',
- 'major',
- 'company',
- 'icon',
- 'expertise',
- 'workexperience',
- 'scientific',
- 'undertakingproject',
- 'scienceaward',
- 'social',
- 'status',
- ],
- },
- destroy: {
- params: ['!id'],
- service: 'delete',
- },
- update: {
- params: ['!id'],
- requestBody: [
- 'name',
- 'phone',
- 'card',
- 'birth',
- 'qqwx',
- 'email',
- 'zwzc',
- 'education',
- 'school',
- 'major',
- 'company',
- 'icon',
- 'expertise',
- 'workexperience',
- 'scientific',
- 'undertakingproject',
- 'scienceaward',
- 'social',
- 'status',
- ],
- },
- show: {
- parameters: {
- params: ['!id'],
- },
- service: 'fetch',
- },
- index: {
- parameters: {
- query: {
- name: 'name',
- phone: 'phone',
- card: 'card',
- education: 'education',
- status: 'status',
- 'meta.createdAt@start': 'meta.createdAt@start',
- 'meta.createdAt@end': 'meta.createdAt@end',
- },
- // options: {
- // "meta.state": 0 // 默认条件
- // },
- },
- service: 'query',
- options: {
- query: ['skip', 'limit'],
- sort: ['meta.createdAt'],
- desc: true,
- count: true,
- },
- },
- login: {
- requestBody: ['!phone', '!password'],
- },
- updatePwd: {
- params: ['!id'],
- requestBody: ['!password'],
- },
- };
|