mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
25 lines
487 B
Go
25 lines
487 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
// CtxKeyAuthorizedUser ..
|
|
const CtxKeyAuthorizedUser = "ckau"
|
|
|
|
// CtxKeyOauth2State ..
|
|
const CtxKeyOauth2State = "cko2s"
|
|
|
|
// Common ..
|
|
type Common struct {
|
|
ID uint64 `gorm:"primary_key"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt *time.Time `sql:"index"`
|
|
}
|
|
|
|
// Response ..
|
|
type Response struct {
|
|
Code uint64 `json:"code,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
Result interface{} `json:"result,omitempty"`
|
|
}
|