1
This commit is contained in:
parent
d8784ca3f5
commit
08a8a3e735
24
server/wheelserver/service/bag.go
Normal file
24
server/wheelserver/service/bag.go
Normal file
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user