新增支持API添加用户,查询邮件
This commit is contained in:
@@ -116,7 +116,7 @@ const roleService = {
|
||||
},
|
||||
|
||||
roleSelectUse(c) {
|
||||
return orm(c).select({ name: role.name, roleId: role.roleId }).from(role).orderBy(asc(role.sort)).all();
|
||||
return orm(c).select({ name: role.name, roleId: role.roleId, isDefault: role.isDefault }).from(role).orderBy(asc(role.sort)).all();
|
||||
},
|
||||
|
||||
async selectDefaultRole(c) {
|
||||
@@ -170,6 +170,10 @@ const roleService = {
|
||||
})
|
||||
|
||||
return availIndex > -1
|
||||
},
|
||||
|
||||
selectByName(c, roleName) {
|
||||
return orm(c).select().from(role).where(eq(role.name, roleName)).get();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user