Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomUserService ¶
type CustomUserService interface { UserService // Log LogService // Shop ShopService GetByName(name string) (*model.User, error) }
func NewCustomUserService ¶
func NewCustomUserService(db *gorm.DB) CustomUserService
type LogService ¶
type LogService interface { Create(item *model.Log) error Get(id interface{}, unscoped ...bool) (*model.Log, error) Update(item *model.Log) error UpdateSel(item *model.Log, sel []string) error Delete(id interface{}, unscoped ...bool) error GetList(base *query.Base, q *query.Log) ([]*model.Log, int, error) }
LogService log service interface
func NewLogService ¶
func NewLogService(db *gorm.DB) LogService
type ShopService ¶
type ShopService interface { Create(item *model.Shop) error Get(id interface{}, unscoped ...bool) (*model.Shop, error) Update(item *model.Shop) error UpdateSel(item *model.Shop, sel []string) error Delete(id interface{}, unscoped ...bool) error Undelete(id interface{}) error GetList(base *query.Base, q *query.Shop) ([]*model.Shop, int, error) }
ShopService shop service interface
func NewShopService ¶
func NewShopService(db *gorm.DB) ShopService
type StockInoutItemService ¶
type StockInoutItemService interface { Create(item *model.StockInoutItem) error Get(id interface{}, unscoped ...bool) (*model.StockInoutItem, error) Update(item *model.StockInoutItem) error UpdateSel(item *model.StockInoutItem, sel []string) error Delete(id interface{}, unscoped ...bool) error Undelete(id interface{}) error GetList(base *query.Base, q *query.StockInoutItem) ([]*model.StockInoutItem, int, error) }
StockInoutItemService stockinoutitem service interface
func NewStockInoutItemService ¶
func NewStockInoutItemService(db *gorm.DB) StockInoutItemService
type UserService ¶
type UserService interface { Create(item *model.User) error Get(id interface{}, unscoped ...bool) (*model.User, error) Update(item *model.User) error UpdateSel(item *model.User, sel []string) error Delete(id interface{}, unscoped ...bool) error Undelete(id interface{}) error GetList(base *query.Base, q *query.User) ([]*model.User, int, error) }
UserService user service interface
func NewUserService ¶
func NewUserService(db *gorm.DB) UserService
Click to show internal directories.
Click to hide internal directories.