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