feat: update template
This commit is contained in:
@@ -9,6 +9,22 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type AccessLog struct {
|
||||
ID int64 `json:"id"`
|
||||
RequestID *string `json:"request_id"`
|
||||
UserID *int32 `json:"user_id"`
|
||||
Ip *netip.Addr `json:"ip"`
|
||||
UserAgent *string `json:"user_agent"`
|
||||
RequestMethod string `json:"request_method"`
|
||||
RequestPath string `json:"request_path"`
|
||||
Referer *string `json:"referer"`
|
||||
Message *string `json:"message"`
|
||||
StatusCode *int32 `json:"status_code"`
|
||||
ResponseTimeMs *int32 `json:"response_time_ms"`
|
||||
StartedAt time.Time `json:"started_at"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
|
||||
type Category struct {
|
||||
// 分类ID
|
||||
ID int32 `json:"id"`
|
||||
@@ -45,6 +61,15 @@ type File struct {
|
||||
UpdatedAt *time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
type FileImageMetadatum struct {
|
||||
ID int32 `json:"id"`
|
||||
FileID int32 `json:"file_id"`
|
||||
Width int32 `json:"width"`
|
||||
Height int32 `json:"height"`
|
||||
Format string `json:"format"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
|
||||
type Post struct {
|
||||
// 主键ID
|
||||
ID int32 `json:"id"`
|
||||
@@ -81,7 +106,7 @@ type PostStat struct {
|
||||
// 文章id
|
||||
PostID int32 `json:"post_id"`
|
||||
// 文章阅读量
|
||||
View int32 `json:"view"`
|
||||
ViewCount int32 `json:"view_count"`
|
||||
}
|
||||
|
||||
type PostTag struct {
|
||||
@@ -207,6 +232,8 @@ type SysUser struct {
|
||||
Status int16 `json:"status"`
|
||||
// 头像文件id
|
||||
AvatarID *int32 `json:"avatar_id"`
|
||||
// Token Version
|
||||
TokenVersion int32 `json:"token_version"`
|
||||
// 创建时间
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
// 更新时间
|
||||
|
||||
Reference in New Issue
Block a user