Browse Source

增加下载接口。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.9.2^2
zouap 3 years ago
parent
commit
b3f59f3819
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/user_invitation.go

+ 1
- 1
models/user_invitation.go View File

@@ -36,7 +36,7 @@ func QueryInvitaionByPhone(phone string) []*Invitation {
func GetAllUserName() map[int64]string { func GetAllUserName() map[int64]string {
sess := x.NewSession() sess := x.NewSession()
defer sess.Close() defer sess.Close()
sess.Select("`user`.id,`user`.name,").Table("user")
sess.Select("id,name").Table("user")
userList := make([]*User, 0) userList := make([]*User, 0)
reMap := make(map[int64]string) reMap := make(map[int64]string)
sess.Find(&userList) sess.Find(&userList)


Loading…
Cancel
Save