fix(park):获取园区列表现在默认返回空列表。
This commit is contained in:
parent
04417c0fca
commit
20c4398e11
|
@ -13,7 +13,7 @@ type _ParkRepository struct{}
|
|||
var ParkRepo _ParkRepository
|
||||
|
||||
func (_ParkRepository) ListAllParkBelongsTo(uid string) ([]model.Park, error) {
|
||||
var parks []model.Park
|
||||
parks := make([]model.Park, 0)
|
||||
err := global.DBConn.
|
||||
Where(builder.Eq{"user_id": uid}).
|
||||
NoAutoCondition().
|
||||
|
|
Loading…
Reference in New Issue
Block a user