mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
Web 服务
This commit is contained in:
24
model/common.go
Normal file
24
model/common.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// CtxKeyIsUserLogin ..
|
||||
const CtxKeyIsUserLogin = "ckiul"
|
||||
|
||||
// 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user