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'], }, };