This commit is contained in:
suyl
2021-07-07 10:21:51 +08:00
parent de7ca15b3d
commit 2beca9fbcb
11 changed files with 473 additions and 40 deletions

View File

@@ -1,15 +1,33 @@
package model
import "time"
import (
"time"
)
const (
SessionKey = "jxCode"
SessionKey = "jxCode"
RegisterKey = "jxRegister"
)
const (
ErrCodeSuccess = "0"
ErrCodeNormal = "-1"
ErrCodeToken = "-1000"
)
const (
FieldDeletedAt = "deleted_at"
FieldCreatedAt = "created_at"
FieldUpdatedAt = "updated_at"
FieldLastOperator = "last_operator"
FieldID = "id"
)
type ModelIDCULD struct {
ID int `json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastOperator string `json:"last_operator"`
DeletedAt time.Time `json:"deleted_at"`
ID int `json:"id" db:"id"`
CreatedAt *time.Time `json:"created_at" db:"created_at"`
UpdatedAt *time.Time `json:"updated_at" db:"updated_at"`
LastOperator string `json:"last_operator" db:"last_operator"`
DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"`
}