添加数据权限演示

This commit is contained in:
yxh
2022-03-03 12:04:01 +08:00
parent 476aebf964
commit 3bedf02554
11 changed files with 538 additions and 0 deletions
+10
View File
@@ -103,6 +103,16 @@ func (c *user) EditUser(r *ghttp.Request) {
c.SusJsonExit(r, "修改管理员成功")
}
// UsersGet 获取用户信息列表
func (c *user) UsersGet(r *ghttp.Request) {
ids := r.GetInts("ids")
res, err := service.SysUser.GetUsers(ids)
if err != nil {
c.FailJsonExit(r, err.Error())
}
c.SusJsonExit(r, res)
}
// GetInfo 获取登陆用户信息
func (c *user) GetInfo(r *ghttp.Request) {
userInfo := c.GetCurrentUser(r.Context())