Documentation
¶
Index ¶
Constants ¶
View Source
const ( MysqlType = "mysql" SqliteType = "sqlite" MongoType = "mongo" )
View Source
const ( Desc = "desc" Asc = "asc" )
Variables ¶
This section is empty.
Functions ¶
func FixJsonData ¶
Types ¶
type MysqlQueryParams ¶
type MysqlQueryParams struct {
Page int `json:"page"`
Size int `json:"size"`
OrderKey string `json:"order_key"`
OrderType OrderType `json:"order_type"`
WhereSql map[string]interface{} // key: name = ? \ value: data
}
func (*MysqlQueryParams) GetLimit ¶
func (m *MysqlQueryParams) GetLimit() uint64
func (*MysqlQueryParams) GetOffset ¶
func (m *MysqlQueryParams) GetOffset() uint64
func (*MysqlQueryParams) GetOrderBy ¶
func (m *MysqlQueryParams) GetOrderBy() string
func (*MysqlQueryParams) GetWhereSql ¶
func (m *MysqlQueryParams) GetWhereSql() (string, []interface{})
Click to show internal directories.
Click to hide internal directories.