module.exports = { create: { requestBody: [ 'name', 'password', 'phone', 'email', 'addr', 'office_phone', 'profession', 'code', 'openid', 'juris', 'education', 'school', 'birthDate', 'qqwx', 'company', 'zwzc', 'expertise', 'img_path', 'workexperience', 'scientific', 'undertakingproject', 'scienceaward', 'social', 'status', 'major', 'card', 'isdel', 'remark', 'create_time', ], }, destroy: { params: ['!id'], service: 'delete', }, update: { params: ['!id'], requestBody: [ 'name', 'phone', 'email', 'addr', 'office_phone', 'profession', 'code', 'openid', 'juris', 'education', 'school', 'birthDate', 'qqwx', 'company', 'zwzc', 'expertise', 'img_path', 'workexperience', 'scientific', 'undertakingproject', 'scienceaward', 'social', 'status', 'major', 'card', 'isdel', 'remark', 'create_time', ], }, show: { parameters: { params: ['!user_id'], }, service: 'fetch', }, index: { parameters: { query: { name: '%name%', phone: 'phone', code: 'code', company: 'company', status: 'status', 'create_time@start': 'create_time@start', 'create_time@end': 'create_time@end', }, options: { isdel: '0', // 默认条件 }, }, service: 'query', options: { query: ['skip', 'limit'], sort: ['meta.createdAt'], desc: true, count: true, }, }, // 登陆 login: { requestBody: ['!phone', '!password'], service: 'login', }, //修改密码 password: { params: ['!id'], requestBody: ['password'], service: 'password', }, };