Documentation
¶
Index ¶
- Constants
- func GetFieldName(field *structs.Field) string
- type Chain
- func (c *Chain) AddQueryOrderDir(req Request, defaultColumn string) *Chain
- func (c *Chain) AddQueryOrderDirWithPrefix(tableName string, req Request, defaultColumn string) *Chain
- func (c *Chain) BuildFilterConditions(req Request, tableName string, exclude ...string) *Chain
- func (c *Chain) BuildFilterConditionsWithPrefix(req Request, tableName string, exclude ...string) *Chain
- type MysqlConnPool
- type Request
- type RequestWithReverse
- type RequestWithSortKey
Constants ¶
View Source
const ( TagName = "json" SearchWordColumnName = "search_word" )
Variables ¶
This section is empty.
Functions ¶
func GetFieldName ¶
Types ¶
type Chain ¶
func (*Chain) AddQueryOrderDir ¶
func (*Chain) AddQueryOrderDirWithPrefix ¶
func (*Chain) BuildFilterConditions ¶
type MysqlConnPool ¶
type MysqlConnPool struct { }
* MysqlConnPool * use gorm
func GetInstance ¶
func GetInstance() *MysqlConnPool
func (*MysqlConnPool) GetMysqlDB ¶
func (m *MysqlConnPool) GetMysqlDB() *gorm.DB
func (*MysqlConnPool) InitDataPool ¶
func (m *MysqlConnPool) InitDataPool() (isSucc bool)
* @fuc init connection
type RequestWithReverse ¶
type RequestWithReverse interface { RequestWithSortKey GetReverse() *wrappers.BoolValue }
type RequestWithSortKey ¶
type RequestWithSortKey interface { Request GetSortKey() *wrappers.StringValue }
Click to show internal directories.
Click to hide internal directories.