mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 02:04:07 +00:00
添加数据权限演示
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user