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