|
|
@@ -17,6 +17,15 @@ func DbsUserFindByIds(eg *xorm.Engine, uid []int) (*[]model.User, error) { |
|
|
|
return &users, nil |
|
|
|
} |
|
|
|
|
|
|
|
func DbsUserFindByUid(eg *xorm.Engine, uid int) (*model.User, error) { |
|
|
|
var data model.User |
|
|
|
get, err := eg.Where("uid =?", uid).Get(&data) |
|
|
|
if get == false || err != nil { |
|
|
|
return nil, zhios_order_relate_logx.Error(err) |
|
|
|
} |
|
|
|
return &data, nil |
|
|
|
} |
|
|
|
|
|
|
|
func DbsUserRelate(eg *xorm.Engine, uid, level int) (*[]model.UserRelate, error) { |
|
|
|
var userRelate []model.UserRelate |
|
|
|
sess := eg.Where("uid = ?", uid) |
|
|
|