Documentation
¶
Index ¶
Constants ¶
View Source
const DeviceSql string = ``
DeviceSql the statement to create 'device' mysql table
View Source
const LogSql string = ``
LogSql the statement to create 'log' mysql table
View Source
const UserSql string = ``
UserSql the statement to create 'user' mysql table
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
UUID string `key:"pri" json:"uuid"`
UpdatedAt int64 `json:"updated_at"`
CreatedAt int64 `json:"created_at"`
DeletedTs int64 `json:"deleted_ts"`
}
Device comment...
type DivideArg ¶
type DivideArg struct {
// dividend
A float64 `json:"a"`
// divisor
B float64 `param:"<range: 0.01:100000>" json:"b"`
}
DivideArg divide api arg
type DivideResult ¶
type DivideResult struct {
// quotient
C float64 `json:"c"`
}
DivideResult divide api result
type HomeResult ¶
type HomeResult struct {
Content string `json:"content"` // text
}
HomeResult home result
type Log ¶
type Log struct {
Id int64 `json:"id" key:"pri"`
Text string `json:"text"`
UpdatedAt int64 `json:"updated_at"`
CreatedAt int64 `json:"created_at"`
DeletedTs int64 `json:"deleted_ts"`
}
Log comment...
type Meta ¶
type Meta struct {
Id mongo.ObjectId `json:"_id" bson:"_id" key:"pri"`
Hobby []string `json:"hobby" bson:"hobby"`
Tags []string `json:"tags" bson:"tags"`
UpdatedAt int64 `json:"updated_at" bson:"updated_at"`
CreatedAt int64 `json:"created_at" bson:"created_at"`
DeletedTs int64 `json:"deleted_ts" bson:"deleted_ts"`
}
Meta comment...
Click to show internal directories.
Click to hide internal directories.