|
|
@@ -17,10 +17,13 @@ type EggFriendCircleBasicDb struct { |
|
|
|
|
|
|
|
func (e EggFriendCircleBasicDb) EggFriendCircleBasicGetOne() (*model.EggFriendCircleBasic, error) { |
|
|
|
var m model.EggFriendCircleBasic |
|
|
|
_, err := e.Db.Where("id >= ?", 1).Get(&m) |
|
|
|
has, err := e.Db.Where("id >= ?", 1).Get(&m) |
|
|
|
if err != nil { |
|
|
|
return nil, zhios_order_relate_logx.Error(err.Error()) |
|
|
|
} |
|
|
|
if has == false { |
|
|
|
return nil, nil |
|
|
|
} |
|
|
|
return &m, nil |
|
|
|
} |
|
|
|
|
|
|
|