Documentation
¶
Index ¶
- func Init()
- type CatModel
- func (m *CatModel) BatchCreate(ctx context.Context, cat ...*cat.Cat) (int64, error)
- func (m *CatModel) BatchDelete(ctx context.Context, ids ...string) (int64, error)
- func (m *CatModel) BatchGet(ctx context.Context, ids ...string) ([]*cat.Cat, error)
- func (m *CatModel) BatchUpdate(ctx context.Context, cat []*cat.Cat) (int64, error)
- func (m *CatModel) Create(ctx context.Context, cat *cat.Cat) (int64, error)
- func (m *CatModel) Delete(ctx context.Context, id string) (int64, error)
- func (m *CatModel) Get(ctx context.Context, id string) (*cat.Cat, error)
- func (m *CatModel) List(ctx context.Context, filter string, condition ...string) ([]*cat.Cat, error)
- func (m *CatModel) Update(ctx context.Context, cat *cat.Cat) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CatModel ¶
func GetCatModel ¶
func GetCatModel() *CatModel
func NewCatModel ¶
func NewCatModel() *CatModel
func (*CatModel) BatchCreate ¶
func (*CatModel) BatchDelete ¶
func (*CatModel) BatchUpdate ¶
Click to show internal directories.
Click to hide internal directories.