Documentation
¶
Index ¶
- type Store
- type StoreDB
- func (db *StoreDB) Delete(storeID int) error
- func (db *StoreDB) GetByID(storeID int) (*Store, error)
- func (db *StoreDB) Insert(icon, coverImg, label, company string) error
- func (db *StoreDB) List() ([]Store, error)
- func (db *StoreDB) ListByID(storeIDs []int) ([]Store, error)
- func (db *StoreDB) Update(storeID int, label, icon, coverImg, company string) error
- type StoreTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
StoreID int `json:"storeID" db:"store_id"` // 店铺ID
Active bool `json:"active" db:"active"` // 是否有效
Icon string `json:"icon" db:"icon"` // 图标
CoverImg string `json:"coverImg" db:"cover_img"` // 封面图
Label string `json:"label" db:"label"` // 名称,简短的,3-5字内
Company string `json:"company" db:"company"` // 运营公司
CreateTime time.Time `json:"createTime" db:"create_time"` // 创建时间
UpdateTime time.Time `json:"updateTime" db:"update_time"` // 更新时间
}
Store 店铺
Source Files
¶
- store_get.go
- store_insert.go
- store_list.go
- store_update.go
- struct.go
Click to show internal directories.
Click to hide internal directories.