mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 05:08:13 -05:00
23 lines
435 B
Go
23 lines
435 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const CtxKeyAuthorizedUser = "ckau"
|
|
|
|
const CacheKeyOauth2State = "p:a:state"
|
|
|
|
type Common struct {
|
|
ID uint64 `gorm:"primaryKey"`
|
|
CreatedAt time.Time `sql:"index"`
|
|
UpdatedAt time.Time
|
|
DeletedAt *time.Time `sql:"index"`
|
|
}
|
|
|
|
type Response struct {
|
|
Code int `json:"code,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
Result interface{} `json:"result,omitempty"`
|
|
}
|