@@ -1,6 +1,6 @@
module.exports = {
create: {
- requestBody: ['!openid', 'name', 'gender', 'phone', 'email', 'type', 'icon', 'card'],
+ requestBody: ['openid', 'name', 'gender', 'phone', 'email', 'type', 'icon', 'card'],
},
destroy: {
params: ['!id'],
@@ -12,7 +12,7 @@ module.exports = {
show: {
parameters: {
- params: ['!openid'],
+ params: ['!id'],
service: 'fetch',
@@ -9,10 +9,10 @@ class UserService extends CrudService {
this.model = this.ctx.model.User;
}
- async fetch({ openid }) {
- const res = await this.model.findOne({ openid });
- return res;
- }
+ // async fetch({ openid }) {
+ // const res = await this.model.findOne({ openid });
+ // return res;
+ // }
/**
* 检查数据重复