更新软件升级

This commit is contained in:
2026-04-08 20:33:02 +08:00
parent d5d6c9fb4c
commit bccc38c47c
20 changed files with 1273 additions and 14 deletions
+19
View File
@@ -0,0 +1,19 @@
package models
import "time"
// ComplaintCategory 投诉建议产品分类 yz_system_complaint_category
type ComplaintCategory struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
Name string `orm:"column(name);size(64)" json:"name"`
Code *string `orm:"column(code);size(32);null" json:"code"`
Sort int `orm:"column(sort);default(0)" json:"sort"`
Status int8 `orm:"column(status);default(1)" json:"status"`
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"createTime"`
UpdateTime *time.Time `orm:"column(update_time);auto_now;type(datetime);null" json:"updateTime"`
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"deleteTime"`
}
func (c *ComplaintCategory) TableName() string {
return "yz_system_complaint_category"
}
+3
View File
@@ -49,6 +49,9 @@ func Init(_ string) {
new(SystemModules),
new(PlatformLoginVerify),
new(TenantSiteSetting),
new(ComplaintCategory),
new(PlatformComplaint),
new(SystemSoftwareUpgrade),
)
// 创建全局 Ormer
+26
View File
@@ -0,0 +1,26 @@
package models
import "time"
// PlatformComplaint 平台投诉建议 yz_system_platform_complaint
type PlatformComplaint struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
CategoryID uint64 `orm:"column(category_id)" json:"categoryId"`
Title string `orm:"column(title);size(200)" json:"title"`
Content string `orm:"column(content);type(text)" json:"content"`
ContactName *string `orm:"column(contact_name);size(64);null" json:"contactName"`
ContactPhone *string `orm:"column(contact_phone);size(32);null" json:"contactPhone"`
ContactEmail *string `orm:"column(contact_email);size(128);null" json:"contactEmail"`
Status int8 `orm:"column(status);default(0)" json:"status"`
ReplyContent *string `orm:"column(reply_content);type(text);null" json:"replyContent"`
ReplyTime *time.Time `orm:"column(reply_time);type(datetime);null" json:"replyTime"`
Tid *uint64 `orm:"column(tid);null" json:"tid"`
Remark *string `orm:"column(remark);size(512);null" json:"remark"`
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"createTime"`
UpdateTime *time.Time `orm:"column(update_time);auto_now;type(datetime);null" json:"updateTime"`
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"deleteTime"`
}
func (p *PlatformComplaint) TableName() string {
return "yz_system_platform_complaint"
}
+24
View File
@@ -0,0 +1,24 @@
package models
import "time"
// SystemSoftwareUpgrade 软件升级产品 yz_system_software_upgrade
type SystemSoftwareUpgrade struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
Name string `orm:"column(name);size(128)" json:"name"`
Code string `orm:"column(code);size(64);unique" json:"code"`
LatestVersion string `orm:"column(latest_version);size(32)" json:"latestVersion"`
FileID *uint64 `orm:"column(file_id);null" json:"fileId"`
DownloadURL *string `orm:"column(download_url);size(512);null" json:"downloadUrl"`
ForceUpdate int8 `orm:"column(force_update);default(0)" json:"forceUpdate"`
ReleaseNotes *string `orm:"column(release_notes);size(2000);null" json:"releaseNotes"`
Status int8 `orm:"column(status);default(1)" json:"status"`
Sort int `orm:"column(sort);default(0)" json:"sort"`
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"createTime"`
UpdateTime *time.Time `orm:"column(update_time);auto_now;type(datetime);null" json:"updateTime"`
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"deleteTime"`
}
func (m *SystemSoftwareUpgrade) TableName() string {
return "yz_system_software_upgrade"
}