Documentation
¶
Index ¶
Constants ¶
View Source
const MAXROWS = 999999999
MAXROWS : Max amount of rows returns per page
View Source
const PAGEROWS = 20
PAGEROWS : Normal amount of rows return per page
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseDao ¶
type BaseDao struct {
CreatedTime time.Time `orm:"auto_now_add;type(datetime)" json:"created_time"`
UpdatedTime time.Time `orm:"auto_now;type(datetime)" json:"updated_time"`
// contains filtered or unexported fields
}
BaseDao : Wrap of dao
func (*BaseDao) SetPageParams ¶
SetPageParams : Set pagination params
func (*BaseDao) SetSearchCdt ¶
SetSearchCdt : Set search conditions
func (*BaseDao) SetSearchMap ¶
SetSearchMap : Set search conditions
type CenterConfig ¶
type CenterConfig struct {
Id int `json:"id"`
Env string `json:"env" orm:"column(env)"`
Mod string `json:"mod"`
Key string `json:"key"`
Val string `json:"val"`
Type string `json:"type"`
Version string `json:"version"`
BaseDao
}
CenterConfig : Table structure
func (*CenterConfig) Create ¶
func (cc *CenterConfig) Create() (int64, error)
Create record according to dto
func (*CenterConfig) List ¶
func (cc *CenterConfig) List() (interface{}, int64)
List with params of pagination & search conditions
func (*CenterConfig) TableName ¶
func (*CenterConfig) TableName() string
TableName : Return table's name in database
Click to show internal directories.
Click to hide internal directories.