mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-26 16:46:14 +08:00
发布v2.11.5版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -87,6 +87,14 @@ type UploadConfig struct {
|
||||
QiNiuDomain string `json:"uploadQiNiuDomain"`
|
||||
QiNiuPath string `json:"uploadQiNiuPath"`
|
||||
QiNiuBucket string `json:"uploadQiNiuBucket"`
|
||||
// minio配置
|
||||
MinioAccessKey string `json:"uploadMinioAccessKey"`
|
||||
MinioSecretKey string `json:"uploadMinioSecretKey"`
|
||||
MinioEndpoint string `json:"uploadMinioEndpoint"`
|
||||
MinioUseSSL int `json:"uploadMinioUseSSL"`
|
||||
MinioPath string `json:"uploadMinioPath"`
|
||||
MinioBucket string `json:"uploadMinioBucket"`
|
||||
MinioDomain string `json:"uploadMinioDomain"`
|
||||
}
|
||||
|
||||
// GeoConfig 地理配置
|
||||
|
@@ -14,6 +14,8 @@ type AdminMenu struct {
|
||||
g.Meta `orm:"table:hg_admin_menu, do:true"`
|
||||
Id interface{} // 菜单ID
|
||||
Pid interface{} // 父菜单ID
|
||||
Level interface{} // 关系树等级
|
||||
Tree interface{} // 关系树
|
||||
Title interface{} // 菜单名称
|
||||
Name interface{} // 名称编码
|
||||
Path interface{} // 路由地址
|
||||
@@ -31,11 +33,9 @@ type AdminMenu struct {
|
||||
KeepAlive interface{} // 缓存该路由
|
||||
Hidden interface{} // 是否隐藏
|
||||
Affix interface{} // 是否固定
|
||||
Level interface{} // 关系树等级
|
||||
Tree interface{} // 关系树
|
||||
Sort interface{} // 排序
|
||||
Remark interface{} // 备注
|
||||
Status interface{} // 菜单状态
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
}
|
||||
|
@@ -14,9 +14,10 @@ type SysCron struct {
|
||||
g.Meta `orm:"table:hg_sys_cron, do:true"`
|
||||
Id interface{} // 任务ID
|
||||
GroupId interface{} // 分组ID
|
||||
Name interface{} // 任务名称
|
||||
Title interface{} // 任务标题
|
||||
Name interface{} // 任务方法
|
||||
Params interface{} // 函数参数
|
||||
Pattern interface{} // 定时表达式
|
||||
Pattern interface{} // 表达式
|
||||
Policy interface{} // 策略
|
||||
Count interface{} // 执行次数
|
||||
Sort interface{} // 排序
|
||||
|
@@ -12,6 +12,8 @@ import (
|
||||
type AdminMenu struct {
|
||||
Id int64 `json:"id" description:"菜单ID"`
|
||||
Pid int64 `json:"pid" description:"父菜单ID"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系树"`
|
||||
Title string `json:"title" description:"菜单名称"`
|
||||
Name string `json:"name" description:"名称编码"`
|
||||
Path string `json:"path" description:"路由地址"`
|
||||
@@ -29,11 +31,9 @@ type AdminMenu struct {
|
||||
KeepAlive int `json:"keepAlive" description:"缓存该路由"`
|
||||
Hidden int `json:"hidden" description:"是否隐藏"`
|
||||
Affix int `json:"affix" description:"是否固定"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系树"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status int `json:"status" description:"菜单状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
}
|
||||
|
@@ -12,9 +12,10 @@ import (
|
||||
type SysCron struct {
|
||||
Id int64 `json:"id" description:"任务ID"`
|
||||
GroupId int64 `json:"groupId" description:"分组ID"`
|
||||
Name string `json:"name" description:"任务名称"`
|
||||
Title string `json:"title" description:"任务标题"`
|
||||
Name string `json:"name" description:"任务方法"`
|
||||
Params string `json:"params" description:"函数参数"`
|
||||
Pattern string `json:"pattern" description:"定时表达式"`
|
||||
Pattern string `json:"pattern" description:"表达式"`
|
||||
Policy int64 `json:"policy" description:"策略"`
|
||||
Count int64 `json:"count" description:"执行次数"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
|
@@ -187,6 +187,8 @@ type MemberViewModel struct {
|
||||
type MemberListInp struct {
|
||||
form.PageReq
|
||||
form.StatusReq
|
||||
Id int64 `json:"id" dc:"用户ID"`
|
||||
Pid int64 `json:"pid" dc:"上级ID"`
|
||||
RoleId int `json:"roleId" dc:"角色ID"`
|
||||
DeptId int `json:"deptId" dc:"部门ID"`
|
||||
Mobile int `json:"mobile" dc:"手机号"`
|
||||
|
@@ -6,6 +6,7 @@
|
||||
package sysin
|
||||
|
||||
import (
|
||||
"hotgo/internal/library/cron"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
)
|
||||
@@ -43,9 +44,9 @@ type CronViewModel struct {
|
||||
// CronListInp 获取列表
|
||||
type CronListInp struct {
|
||||
form.PageReq
|
||||
|
||||
form.StatusReq
|
||||
Name string
|
||||
GroupId int64 `json:"groupId" description:"分组ID"`
|
||||
Name string `json:"name" description:"任务名称"`
|
||||
}
|
||||
|
||||
type CronListModel struct {
|
||||
@@ -64,3 +65,11 @@ type OnlineExecInp struct {
|
||||
entity.SysCron
|
||||
}
|
||||
type OnlineExecModel struct{}
|
||||
|
||||
// DispatchLogInp 查看指定任务的调度日志
|
||||
type DispatchLogInp struct {
|
||||
entity.SysCron
|
||||
}
|
||||
type DispatchLogModel struct {
|
||||
*cron.Log
|
||||
}
|
||||
|
@@ -82,13 +82,13 @@ type CronGroupViewModel struct {
|
||||
// CronGroupListInp 获取列表
|
||||
type CronGroupListInp struct {
|
||||
form.PageReq
|
||||
|
||||
form.StatusReq
|
||||
Name string
|
||||
}
|
||||
|
||||
type CronGroupListModel struct {
|
||||
entity.SysCronGroup
|
||||
SupName string `json:"supName" description:"上级分组名称"`
|
||||
}
|
||||
|
||||
// CronGroupStatusInp 更新状态
|
||||
|
@@ -3,7 +3,7 @@
|
||||
// @Copyright Copyright (c) 2023 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
// @AutoGenerate Version 2.9.3
|
||||
// @AutoGenerate Version 2.11.5
|
||||
package sysin
|
||||
|
||||
import (
|
||||
|
@@ -3,11 +3,18 @@
|
||||
// @Copyright Copyright (c) 2023 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
//
|
||||
package model
|
||||
|
||||
import "hotgo/internal/model/entity"
|
||||
|
||||
// DefaultTree 默认树表字段
|
||||
type DefaultTree struct {
|
||||
Id int64 `json:"id" description:"ID"`
|
||||
Pid int64 `json:"pid" description:"父ID"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系树"`
|
||||
}
|
||||
|
||||
// TreeMenu 菜单树
|
||||
type TreeMenu struct {
|
||||
entity.AdminMenu
|
||||
|
Reference in New Issue
Block a user