修改了默认user.app
This commit is contained in:
@@ -85,7 +85,8 @@ class HandlerUser {
|
|||||||
social: {
|
social: {
|
||||||
wechat: { openid: openid },
|
wechat: { openid: openid },
|
||||||
},
|
},
|
||||||
status: { account: "normal", }
|
status: { account: "normal", },
|
||||||
|
app: {},
|
||||||
};
|
};
|
||||||
newUser.app[appId] = { role: ["user"], };
|
newUser.app[appId] = { role: ["user"], };
|
||||||
|
|
||||||
|
|||||||
@@ -68,13 +68,6 @@ const UserSchema = mongoose.Schema(
|
|||||||
},
|
},
|
||||||
|
|
||||||
app: {
|
app: {
|
||||||
admin: {
|
|
||||||
role: [{ type: String, enum: ["admin"], comment: '用户在admin应用中的权限' }],
|
|
||||||
},
|
|
||||||
// 中医相关信息 - 用户在中医系统中的角色和权限
|
|
||||||
attendant: {
|
|
||||||
role: [{ type: String, enum: ["admin", "attendant", "patient"], comment: '用户在attendant应用中的权限' }],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 元数据 - 系统管理信息
|
// 元数据 - 系统管理信息
|
||||||
|
|||||||
Reference in New Issue
Block a user