Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
func UpdateUser ¶
Types ¶
type ExampleUserModel ¶
type ExampleUserModel struct { Id int64 `json:"id"` Status string `json:"status"` Name string `json:"name"` Email string `json:"email"` Updated_unixtime int64 `json:"updated_unixtime" gorm:"autoUpdateTime"` Created_unixtime int64 `json:"created_unixtime" gorm:"autoCreateTime"` }
example for GormDB and tools cache
func CreateUser ¶
func CreateUser(userInfo *ExampleUserModel) (*ExampleUserModel, error)
type QueryUserResult ¶
type QueryUserResult struct { Users []*ExampleUserModel `json:"users"` Total_count int64 `json:"total_count"` }
query
Click to show internal directories.
Click to hide internal directories.