feat: release v1.0.0

This commit is contained in:
2026-07-29 22:10:36 +08:00
parent ee9f50b859
commit c903b5a6b5
81 changed files with 2776 additions and 1044 deletions

View File

@@ -2,7 +2,7 @@
// versions:
// sqlc v1.31.1
package db
package sqlc
import (
"net/netip"
@@ -15,7 +15,9 @@ type Category struct {
// 分类名称
Name string `json:"name"`
// 分类编码
Code string `json:"code"`
Code string `json:"code"`
// 分类排序
Sort *int32 `json:"sort"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
}
@@ -80,6 +82,13 @@ type PostStat struct {
View int32 `json:"view"`
}
type PostTag struct {
// 文章ID
PostID int32 `json:"post_id"`
// 标签id
TagID int32 `json:"tag_id"`
}
type PostViewer struct {
// 文章id
PostID int32 `json:"post_id"`
@@ -121,7 +130,7 @@ type SysMenu struct {
// 菜单名称
Name string `json:"name"`
// 菜单路径
Path string `json:"path"`
Path *string `json:"path"`
// 组件路径
Component *string `json:"component"`
// 菜单类型 0: 目录 1: 菜单 2: button
@@ -156,7 +165,7 @@ type SysPermission struct {
Code *string `json:"code"`
Type int16 `json:"type"`
// 创建时间
CreatedAt interface{} `json:"created_at"`
CreatedAt time.Time `json:"created_at"`
// 更新时间
UpdatedAt *time.Time `json:"updated_at"`
}
@@ -168,6 +177,8 @@ type SysRole struct {
Name string `json:"name"`
// 角色编码,唯一
Code string `json:"code"`
// 角色状态 0:禁用 1:启用
Status int16 `json:"status"`
// 创建时间
CreatedAt time.Time `json:"created_at"`
// 更新时间
@@ -190,6 +201,8 @@ type SysUser struct {
Username string `json:"username"`
// hash密码
PasswordHash string `json:"password_hash"`
// 用户状态 0:禁用 1:启用
Status int16 `json:"status"`
// 头像文件id
AvatarID *int32 `json:"avatar_id"`
// 创建时间
@@ -204,3 +217,16 @@ type SysUserRole struct {
// 角色ID
RoleID int32 `json:"role_id"`
}
type Tag struct {
// 标签ID
ID int32 `json:"id"`
// 标签名称
Name string `json:"name"`
// 标签编码
Code string `json:"code"`
// 标签排序
Sort *int32 `json:"sort"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
}