Documentation ¶
Index ¶
- func DefaultClient() *httpclient.Client
- type CacheModel
- type DBModel
- func (m *DBModel[T]) DB(dbName string) *mysql.DB
- func (mdl *DBModel[T]) Exists(cond map[string]any) (bool, error)
- func (mdl *DBModel[T]) Find(cond map[string]any, fields ...string) ([]T, int, error)
- func (mdl *DBModel[T]) First(cond map[string]any, fields ...string) (*T, int, error)
- func (mdl *DBModel[T]) Insert(set map[string]any) (int64, error)
- func (m *DBModel[T]) QueryBuilder() mysql.Builder
- func (m *DBModel[T]) SetDb(dbname string)
- func (m *DBModel[T]) SetTable(table string)
- type RpcModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClient ¶ added in v0.6.1
func DefaultClient() *httpclient.Client
Types ¶
type CacheModel ¶
func (*CacheModel) SetCache ¶
func (m *CacheModel) SetCache(name string)
type DBModel ¶ added in v0.6.1
type DBModel[T any] struct { // contains filtered or unexported fields }
func (*DBModel[T]) QueryBuilder ¶ added in v0.6.1
Click to show internal directories.
Click to hide internal directories.