Web 服务

This commit is contained in:
奶爸 committed 2019-12-08 16:59:58 +08:00
1 parent b76ea0b4d3
commit f2f840de4a
33 files changed
+1111 -20

No files matched your search

+24
View 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"`
}