2019-12-08 16:59:58 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2019-12-20 23:58:09 +08:00
|
|
|
const CtxKeyAuthorizedUser = "ckau"
|
2019-12-08 16:59:58 +08:00
|
|
|
|
2021-01-20 19:24:59 +08:00
|
|
|
const CacheKeyOauth2State = "p:a:state"
|
2019-12-08 16:59:58 +08:00
|
|
|
|
|
|
|
type Common struct {
|
2021-07-14 23:53:37 +08:00
|
|
|
ID uint64 `gorm:"primary_key"`
|
|
|
|
CreatedAt time.Time `sql:"index"`
|
2019-12-08 16:59:58 +08:00
|
|
|
UpdatedAt time.Time
|
|
|
|
DeletedAt *time.Time `sql:"index"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Response struct {
|
|
|
|
Code uint64 `json:"code,omitempty"`
|
|
|
|
Message string `json:"message,omitempty"`
|
|
|
|
Result interface{} `json:"result,omitempty"`
|
|
|
|
}
|