This commit is contained in:
孟帅
2024-07-21 22:21:02 +08:00
parent 7d8330f72f
commit a37d088360
440 changed files with 6303 additions and 3339 deletions

View File

@@ -13,4 +13,5 @@ type Option struct {
ValueType string `json:"valueType" description:"键值数据类型"`
Type string `json:"type" description:"字典类型"`
ListClass string `json:"listClass" description:"表格回显样式"`
Extra interface{} `json:"extra" description:"额外数据配置"`
}

0
server/internal/model/do/addon_hgexample_table.go Normal file → Executable file
View File

View File

0
server/internal/model/do/admin_cash.go Normal file → Executable file
View File

0
server/internal/model/do/admin_credits_log.go Normal file → Executable file
View File

0
server/internal/model/do/admin_dept.go Normal file → Executable file
View File

0
server/internal/model/do/admin_member.go Normal file → Executable file
View File

0
server/internal/model/do/admin_member_post.go Normal file → Executable file
View File

0
server/internal/model/do/admin_member_role.go Normal file → Executable file
View File

0
server/internal/model/do/admin_menu.go Normal file → Executable file
View File

0
server/internal/model/do/admin_notice.go Normal file → Executable file
View File

0
server/internal/model/do/admin_notice_read.go Normal file → Executable file
View File

0
server/internal/model/do/admin_oauth.go Normal file → Executable file
View File

0
server/internal/model/do/admin_order.go Normal file → Executable file
View File

0
server/internal/model/do/admin_post.go Normal file → Executable file
View File

0
server/internal/model/do/admin_role.go Normal file → Executable file
View File

0
server/internal/model/do/admin_role_casbin.go Normal file → Executable file
View File

0
server/internal/model/do/admin_role_menu.go Normal file → Executable file
View File

0
server/internal/model/do/pay_log.go Normal file → Executable file
View File

0
server/internal/model/do/pay_refund.go Normal file → Executable file
View File

0
server/internal/model/do/sys_addons_config.go Normal file → Executable file
View File

0
server/internal/model/do/sys_attachment.go Normal file → Executable file
View File

0
server/internal/model/do/sys_blacklist.go Normal file → Executable file
View File

0
server/internal/model/do/sys_config.go Normal file → Executable file
View File

0
server/internal/model/do/sys_cron.go Normal file → Executable file
View File

0
server/internal/model/do/sys_cron_group.go Normal file → Executable file
View File

0
server/internal/model/do/sys_dict_data.go Normal file → Executable file
View File

0
server/internal/model/do/sys_dict_type.go Normal file → Executable file
View File

0
server/internal/model/do/sys_ems_log.go Normal file → Executable file
View File

0
server/internal/model/do/sys_gen_codes.go Normal file → Executable file
View File

0
server/internal/model/do/sys_gen_curd_demo.go Normal file → Executable file
View File

0
server/internal/model/do/sys_gen_tree_demo.go Normal file → Executable file
View File

0
server/internal/model/do/sys_log.go Normal file → Executable file
View File

0
server/internal/model/do/sys_login_log.go Normal file → Executable file
View File

0
server/internal/model/do/sys_provinces.go Normal file → Executable file
View File

0
server/internal/model/do/sys_serve_license.go Normal file → Executable file
View File

0
server/internal/model/do/sys_serve_log.go Normal file → Executable file
View File

0
server/internal/model/do/sys_sms_log.go Normal file → Executable file
View File

0
server/internal/model/do/test_category.go Normal file → Executable file
View File

0
server/internal/model/entity/addon_hgexample_table.go Normal file → Executable file
View File

View File

0
server/internal/model/entity/admin_cash.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_credits_log.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_dept.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_member.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_member_post.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_member_role.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_menu.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_notice.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_notice_read.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_oauth.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_order.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_post.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_role.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_role_casbin.go Normal file → Executable file
View File

0
server/internal/model/entity/admin_role_menu.go Normal file → Executable file
View File

0
server/internal/model/entity/pay_log.go Normal file → Executable file
View File

0
server/internal/model/entity/pay_refund.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_addons_config.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_attachment.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_blacklist.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_config.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_cron.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_cron_group.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_dict_data.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_dict_type.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_ems_log.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_gen_codes.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_gen_curd_demo.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_gen_tree_demo.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_log.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_login_log.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_provinces.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_serve_license.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_serve_log.go Normal file → Executable file
View File

0
server/internal/model/entity/sys_sms_log.go Normal file → Executable file
View File

0
server/internal/model/entity/test_category.go Normal file → Executable file
View File

View File

@@ -3,15 +3,18 @@
// @Copyright Copyright (c) 2024 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
// @AutoGenerate Version 2.13.1
// @AutoGenerate Version 2.15.1
package sysin
import (
"context"
"hotgo/internal/consts"
"hotgo/internal/library/hgorm/hook"
"hotgo/internal/model/entity"
"hotgo/internal/model/input/form"
"hotgo/utility/validate"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
@@ -26,9 +29,7 @@ type CurdDemoUpdateFields struct {
CityId int64 `json:"cityId" dc:"所在城市"`
Sort int `json:"sort" dc:"排序"`
Switch int `json:"switch" dc:"显示开关"`
Status int `json:"status" dc:"状态"`
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
CategoryId int64 `json:"categoryId" dc:"测试分类"`
}
// CurdDemoInsertFields 新增CURD列表字段过滤
@@ -41,9 +42,7 @@ type CurdDemoInsertFields struct {
CityId int64 `json:"cityId" dc:"所在城市"`
Sort int `json:"sort" dc:"排序"`
Switch int `json:"switch" dc:"显示开关"`
Status int `json:"status" dc:"状态"`
CreatedBy int64 `json:"createdBy" dc:"创建者"`
CategoryId int64 `json:"categoryId" dc:"测试分类"`
}
// CurdDemoEditInp 修改/新增CURD列表
@@ -72,11 +71,6 @@ func (in *CurdDemoEditInp) Filter(ctx context.Context) (err error) {
return err.Current()
}
// 验证测试分类
if err := g.Validator().Rules("required").Data(in.CategoryId).Messages("测试分类不能为空").Run(ctx); err != nil {
return err.Current()
}
return
}
@@ -114,10 +108,8 @@ type CurdDemoListInp struct {
Id int64 `json:"id" dc:"ID"`
Title string `json:"title" dc:"标题"`
Description string `json:"description" dc:"描述"`
Status int `json:"status" dc:"状态"`
CreatedBy string `json:"createdBy" dc:"创建者"`
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
CategoryId int64 `json:"categoryId" dc:"测试分类"`
TestCategoryName string `json:"testCategoryName" dc:"关联分类"`
}
@@ -133,14 +125,12 @@ type CurdDemoListModel struct {
Attachfile string `json:"attachfile" dc:"附件"`
Sort int `json:"sort" dc:"排序"`
Switch int `json:"switch" dc:"显示开关"`
Status int `json:"status" dc:"状态"`
CreatedBy int64 `json:"createdBy" dc:"创建者"`
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要信息"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
UpdatedBySumma *hook.MemberSumma `json:"updatedBySumma" dc:"更新者摘要信息"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"修改时间"`
CategoryId int64 `json:"categoryId" dc:"测试分类"`
TestCategoryName string `json:"testCategoryName" dc:"关联分类"`
}
@@ -154,11 +144,9 @@ type CurdDemoExportModel struct {
CityId int64 `json:"cityId" dc:"所在城市"`
Sort int `json:"sort" dc:"排序"`
Switch int `json:"switch" dc:"显示开关"`
Status int `json:"status" dc:"状态"`
CreatedBy int64 `json:"createdBy" dc:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
CategoryId int64 `json:"categoryId" dc:"测试分类"`
TestCategoryName string `json:"testCategoryName" dc:"关联分类"`
}
@@ -173,6 +161,32 @@ type CurdDemoMaxSortModel struct {
Sort int `json:"sort" description:"排序"`
}
// CurdDemoStatusInp 更新CURD列表状态
type CurdDemoStatusInp struct {
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
Status int `json:"status" dc:"状态"`
}
func (in *CurdDemoStatusInp) Filter(ctx context.Context) (err error) {
if in.Id <= 0 {
err = gerror.New("ID不能为空")
return
}
if in.Status <= 0 {
err = gerror.New("状态不能为空")
return
}
if !validate.InSlice(consts.StatusSlice, in.Status) {
err = gerror.New("状态不正确")
return
}
return
}
type CurdDemoStatusModel struct{}
// CurdDemoSwitchInp 更新CURD列表开关状态
type CurdDemoSwitchInp struct {
form.SwitchReq
@@ -183,4 +197,4 @@ func (in *CurdDemoSwitchInp) Filter(ctx context.Context) (err error) {
return
}
type CurdDemoSwitchModel struct{}
type CurdDemoSwitchModel struct{}

View File

@@ -23,6 +23,7 @@ type LogListInp struct {
Ip string `json:"ip" dc:"访问IP"`
ErrorCode string `json:"errorCode" dc:"状态码"`
CreatedAt []int64 `json:"createdAt" dc:"创建时间"`
Keyword string `json:"keyword" dc:"关键词"`
}
type LogListModel struct {

View File

@@ -3,7 +3,7 @@
// @Copyright Copyright (c) 2024 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
// @AutoGenerate Version 2.13.1
// @AutoGenerate Version 2.15.1
package sysin
import (

View File

@@ -3,7 +3,7 @@
// @Copyright Copyright (c) 2024 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
// @AutoGenerate Version 2.13.1
// @AutoGenerate Version 2.15.1
package sysin
import (
@@ -21,6 +21,8 @@ import (
type OptionTreeDemoUpdateFields struct {
Title string `json:"title" dc:"标题"`
Pid int64 `json:"pid" dc:"上级"`
Level int `json:"level" dc:"关系树级别"`
Tree string `json:"tree" dc:"关系树"`
CategoryId int64 `json:"categoryId" dc:"测试分类"`
Description string `json:"description" dc:"描述"`
Sort int `json:"sort" dc:"排序"`
@@ -32,6 +34,8 @@ type OptionTreeDemoUpdateFields struct {
type OptionTreeDemoInsertFields struct {
Title string `json:"title" dc:"标题"`
Pid int64 `json:"pid" dc:"上级"`
Level int `json:"level" dc:"关系树级别"`
Tree string `json:"tree" dc:"关系树"`
CategoryId int64 `json:"categoryId" dc:"测试分类"`
Description string `json:"description" dc:"描述"`
Sort int `json:"sort" dc:"排序"`

View File

@@ -3,7 +3,6 @@
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
//
package sysin
import (
@@ -34,6 +33,7 @@ type ServeLogListInp struct {
form.PageReq
TraceId string `json:"traceId" dc:"链路ID"`
LevelFormat string `json:"levelFormat" dc:"日志级别"`
Content string `json:"content" dc:"日志内容"`
TriggerNs []int64 `json:"triggerNs" dc:"触发时间(ns)"`
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
}

View File

@@ -3,7 +3,7 @@
// @Copyright Copyright (c) 2024 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
// @AutoGenerate Version 2.13.1
// @AutoGenerate Version 2.15.1
package sysin
import (