🎨 添加图库和客服插件(有问题-待修改)

This commit is contained in:
2025-05-14 16:51:31 +08:00
parent 5faff4afa0
commit a5ae680f94
41 changed files with 2592 additions and 12 deletions

View File

@@ -0,0 +1,8 @@
package model
type PageInfo struct {
Page int `json:"page" form:"page"`
Limit int `json:"limit" form:"limit"`
Cid int `json:"cid" form:"cid"` //分类id
Keyword string `json:"keyword" form:"keyword"`
}

View File

@@ -0,0 +1,14 @@
package model
import (
"git.echol.cn/loser/lckt/model/example"
)
type SysAttachment struct {
example.ExaFileUploadAndDownload
CatId uint `json:"cat_id" form:"cat_id" gorm:"default:0;type:int;column:cat_id;comment:分类id;"`
}
func (SysAttachment) TableName() string {
return "exa_file_upload_and_downloads"
}

View File

@@ -0,0 +1,13 @@
package model
type SysAttachmentCategory struct {
Id uint `gorm:"primarykey" json:"id"` // 主键ID
Name string `json:"name" form:"name" gorm:"default:'';type:varchar(255);column:name;comment:分类名称;"`
Pid uint `json:"pid" form:"pid" gorm:"default:0;type:int;column:pid;comment:父节点ID;"`
AddTime int `json:"add_time" form:"add_time" gorm:"default:0;type:int;column:add_time;comment:添加时间;"`
Children []*SysAttachmentCategory `json:"children" gorm:"-"`
}
func (SysAttachmentCategory) TableName() string {
return "sys_attachment_category"
}