diff --git a/server/wheelserver/service/bag.go b/server/wheelserver/service/bag.go new file mode 100644 index 00000000..a51ae421 --- /dev/null +++ b/server/wheelserver/service/bag.go @@ -0,0 +1,24 @@ +package service + +import ( + "f5" + "main/model" + "main/constant" +) + +type bag struct { + +} + +func (this *bag) init() { +} + +func (this *bag) unInit() { +} + +func (this *bag) List(accountId string) (error, []*model.Bag) { + bags := []*model.Bag{} + result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(new(model.Bag).TableName()).Where( + "account_id = ? AND item_num > ?", accountId, 0).Find(&bags) + return result.Error, bags +}