mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-26 16:46:14 +08:00
发布v2.8.4版本,更新内容请查看:https://github.com/bufanyun/hotgo/tree/v2.0/docs/guide-zh-CN/addon-version-upgrade.md
This commit is contained in:
@@ -24,6 +24,7 @@ type ListRes struct {
|
||||
|
||||
type SelectsReq struct {
|
||||
g.Meta `path:"/addons/selects" method:"get" tags:"插件管理" summary:"生成入口选项"`
|
||||
sysin.AddonsSelectsInp
|
||||
}
|
||||
|
||||
type SelectsRes struct {
|
||||
|
@@ -13,12 +13,8 @@ import (
|
||||
|
||||
// ListReq 查询附件列表
|
||||
type ListReq struct {
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
MemberId int64 `json:"member_id"`
|
||||
Drive string `json:"drive"`
|
||||
g.Meta `path:"/attachment/list" method:"get" tags:"附件" summary:"获取附件列表"`
|
||||
g.Meta `path:"/attachment/list" method:"get" tags:"附件" summary:"获取附件列表"`
|
||||
sysin.AttachmentListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
@@ -28,8 +24,8 @@ type ListRes struct {
|
||||
|
||||
// ViewReq 获取附件信息
|
||||
type ViewReq struct {
|
||||
Id int64 `json:"id" v:"required#附件ID不能为空" dc:"附件ID"`
|
||||
g.Meta `path:"/attachment/view" method:"get" tags:"附件" summary:"获取指定附件信息"`
|
||||
sysin.AttachmentViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
@@ -38,8 +34,34 @@ type ViewRes struct {
|
||||
|
||||
// DeleteReq 删除附件
|
||||
type DeleteReq struct {
|
||||
Id interface{} `json:"id" v:"required#附件ID不能为空" dc:"附件ID"`
|
||||
g.Meta `path:"/attachment/delete" method:"post" tags:"附件" summary:"删除附件"`
|
||||
sysin.AttachmentDeleteInp
|
||||
}
|
||||
|
||||
type DeleteRes struct{}
|
||||
|
||||
// ClearKindReq 清空上传类型
|
||||
type ClearKindReq struct {
|
||||
g.Meta `path:"/attachment/clearKind" method:"post" tags:"附件" summary:"清空上传类型"`
|
||||
sysin.AttachmentClearKindInp
|
||||
}
|
||||
|
||||
type ClearKindRes struct{}
|
||||
|
||||
// ChooserOptionReq 获取选择器选项
|
||||
type ChooserOptionReq struct {
|
||||
g.Meta `path:"/attachment/chooserOption" method:"get" tags:"附件" summary:"获取选择器选项"`
|
||||
}
|
||||
|
||||
type ChooserOptionRes struct {
|
||||
Drive sysin.DataSelectModel `json:"drive" dc:"驱动"`
|
||||
Kind []KindSelect `json:"kind" dc:"上传类型"`
|
||||
}
|
||||
|
||||
type KindSelect struct {
|
||||
Key string `json:"key"`
|
||||
Value string `json:"value"`
|
||||
Tag string `json:"listClass"`
|
||||
Label string `json:"label"`
|
||||
Icon string `json:"icon"`
|
||||
}
|
||||
|
@@ -7,19 +7,14 @@ package blacklist
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
// ListReq 查询列表
|
||||
type ListReq struct {
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
g.Meta `path:"/blacklist/list" method:"get" tags:"黑名单" summary:"获取黑名单列表"`
|
||||
g.Meta `path:"/blacklist/list" method:"get" tags:"黑名单" summary:"获取黑名单列表"` // v:"RequestPreFilter"
|
||||
sysin.BlacklistListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
@@ -29,8 +24,8 @@ type ListRes struct {
|
||||
|
||||
// ViewReq 获取信息
|
||||
type ViewReq struct {
|
||||
Id int64 `json:"id" v:"required#黑名单ID不能为空" dc:"黑名单ID"`
|
||||
g.Meta `path:"/blacklist/view" method:"get" tags:"黑名单" summary:"获取指定信息"`
|
||||
sysin.BlacklistViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
@@ -39,34 +34,24 @@ type ViewRes struct {
|
||||
|
||||
// EditReq 修改/新增
|
||||
type EditReq struct {
|
||||
entity.SysBlacklist
|
||||
g.Meta `path:"/blacklist/edit" method:"post" tags:"黑名单" summary:"修改/新增黑名单"`
|
||||
sysin.BlacklistEditInp
|
||||
}
|
||||
|
||||
type EditRes struct{}
|
||||
|
||||
// DeleteReq 删除
|
||||
type DeleteReq struct {
|
||||
Id interface{} `json:"id" v:"required#黑名单ID不能为空" dc:"黑名单ID"`
|
||||
g.Meta `path:"/blacklist/delete" method:"post" tags:"黑名单" summary:"删除黑名单"`
|
||||
sysin.BlacklistDeleteInp
|
||||
}
|
||||
|
||||
type DeleteRes struct{}
|
||||
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"黑名单ID"`
|
||||
g.Meta `path:"/blacklist/maxSort" method:"get" tags:"黑名单" summary:"黑名单最大排序"`
|
||||
}
|
||||
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
}
|
||||
|
||||
// StatusReq 更新状态
|
||||
type StatusReq struct {
|
||||
entity.SysBlacklist
|
||||
g.Meta `path:"/blacklist/status" method:"post" tags:"黑名单" summary:"更新黑名单状态"`
|
||||
sysin.BlacklistStatusInp
|
||||
}
|
||||
|
||||
type StatusRes struct{}
|
||||
|
@@ -34,18 +34,16 @@ type ViewRes struct {
|
||||
|
||||
// ApplyReq 申请提现
|
||||
type ApplyReq struct {
|
||||
Money float64 `json:"money" description:"提现金额"`
|
||||
g.Meta `path:"/cash/apply" method:"post" tags:"提现" summary:"申请提现"`
|
||||
Money float64 `json:"money" description:"提现金额"`
|
||||
}
|
||||
|
||||
type ApplyRes struct{}
|
||||
|
||||
// PaymentReq 提现打款处理
|
||||
type PaymentReq struct {
|
||||
Id int64 `json:"id" description:"ID"`
|
||||
Status int64 `json:"status" description:"状态码"`
|
||||
Msg string `json:"msg" description:"处理结果"`
|
||||
g.Meta `path:"/cash/payment" method:"post" tags:"提现" summary:"提现打款处理"`
|
||||
adminin.CashPaymentInp
|
||||
}
|
||||
|
||||
type PaymentRes struct{}
|
||||
|
@@ -11,8 +11,8 @@ import (
|
||||
|
||||
// SendTestEmailReq 发送测试邮件
|
||||
type SendTestEmailReq struct {
|
||||
To string `json:"to" v:"required#接收者邮件不能为空" dc:"接收者邮件,多个用;隔开"`
|
||||
g.Meta `path:"/ems/sendTest" tags:"邮件" method:"post" summary:"发送测试邮件"`
|
||||
To string `json:"to" v:"required#接收者邮件不能为空" dc:"接收者邮件,多个用;隔开"`
|
||||
}
|
||||
|
||||
type SendTestEmailRes struct {
|
||||
|
@@ -5,14 +5,15 @@
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
package common
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
// SendTestSmsReq 发送测试短信
|
||||
type SendTestSmsReq struct {
|
||||
Event string `json:"event" v:"required#事件模板不能为空" dc:"事件模板"`
|
||||
Mobile string `json:"mobile" v:"required#接收手机号不能为空" dc:"接收手机号"`
|
||||
Code string `json:"code" v:"required#接收验证码不能为空" dc:"接收验证码"`
|
||||
g.Meta `path:"/sms/sendTest" tags:"短信" method:"post" summary:"发送测试短信"`
|
||||
sysin.SendCodeInp
|
||||
}
|
||||
|
||||
type SendTestSmsRes struct {
|
||||
@@ -29,8 +30,7 @@ type SendBindSmsRes struct {
|
||||
// SendSmsReq 发送短信
|
||||
type SendSmsReq struct {
|
||||
g.Meta `path:"/sms/send" tags:"短信" method:"post" summary:"发送短信"`
|
||||
Event string `json:"event" v:"required#事件模板不能为空" dc:"事件模板"`
|
||||
Mobile string `json:"mobile" v:"required#接收手机号不能为空" dc:"接收手机号"`
|
||||
sysin.SendCodeInp
|
||||
}
|
||||
|
||||
type SendSmsRes struct {
|
||||
|
@@ -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 common
|
||||
|
||||
import (
|
||||
@@ -11,13 +10,6 @@ import (
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
// UploadImageReq 上传图片
|
||||
type UploadImageReq struct {
|
||||
g.Meta `path:"/upload/image" tags:"上传" method:"post" summary:"上传图片"`
|
||||
}
|
||||
|
||||
type UploadImageRes *sysin.AttachmentListModel
|
||||
|
||||
// UploadFileReq 上传文件
|
||||
type UploadFileReq struct {
|
||||
g.Meta `path:"/upload/file" tags:"上传" method:"post" summary:"上传附件"`
|
||||
|
@@ -13,8 +13,8 @@ import (
|
||||
|
||||
// GetReq 获取指定分组的配置
|
||||
type GetReq struct {
|
||||
Group string `json:"group" dc:"分组名称" v:"required#分组名称不能为空" `
|
||||
g.Meta `path:"/config/get" method:"get" tags:"配置" summary:"获取指定分组的配置"`
|
||||
sysin.GetConfigInp
|
||||
}
|
||||
|
||||
type GetRes struct {
|
||||
@@ -23,9 +23,8 @@ type GetRes struct {
|
||||
|
||||
// UpdateReq 获取指定分组的配置
|
||||
type UpdateReq struct {
|
||||
Group string `json:"group" dc:"分组名称" v:"required#分组名称不能为空" `
|
||||
List g.Map `json:"list" dc:"更新配置列表" `
|
||||
g.Meta `path:"/config/update" method:"post" tags:"配置" summary:"获取指定分组的配置"`
|
||||
sysin.UpdateConfigInp
|
||||
}
|
||||
|
||||
type UpdateRes struct {
|
||||
|
@@ -75,6 +75,7 @@ type GroupStatusRes struct {
|
||||
// GroupSelectReq 定时任务分组选项
|
||||
type GroupSelectReq struct {
|
||||
g.Meta `path:"/cronGroup/select" method:"get" tags:"定时任务分组" summary:"定时任务分组选项"`
|
||||
sysin.CronGroupSelectInp
|
||||
}
|
||||
|
||||
type GroupSelectRes struct {
|
||||
|
@@ -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.7.3
|
||||
// @AutoGenerate Version 2.7.6
|
||||
package curddemo
|
||||
|
||||
import (
|
||||
@@ -47,6 +47,7 @@ type EditReq struct {
|
||||
g.Meta `path:"/curdDemo/edit" method:"post" tags:"生成演示" summary:"修改/新增生成演示"`
|
||||
sysin.CurdDemoEditInp
|
||||
}
|
||||
|
||||
type EditRes struct{}
|
||||
|
||||
// DeleteReq 删除生成演示
|
||||
@@ -60,6 +61,7 @@ type DeleteRes struct{}
|
||||
// MaxSortReq 获取生成演示最大排序
|
||||
type MaxSortReq struct {
|
||||
g.Meta `path:"/curdDemo/maxSort" method:"get" tags:"生成演示" summary:"获取生成演示最大排序"`
|
||||
sysin.CurdDemoMaxSortInp
|
||||
}
|
||||
|
||||
type MaxSortRes struct {
|
||||
|
@@ -7,26 +7,22 @@ package dept
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/adminin"
|
||||
"hotgo/internal/model/input/form"
|
||||
)
|
||||
|
||||
// ListReq 查询列表
|
||||
type ListReq struct {
|
||||
Name string `json:"name" dc:"部门名称"`
|
||||
Code string `json:"code" dc:"部门编码"`
|
||||
g.Meta `path:"/dept/list" method:"get" tags:"部门" summary:"获取部门列表"`
|
||||
adminin.DeptListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
adminin.DeptListModel
|
||||
}
|
||||
type ListRes *adminin.DeptListModel
|
||||
|
||||
// ViewReq 获取指定信息
|
||||
type ViewReq struct {
|
||||
Id int64 `json:"id" v:"required#部门ID不能为空" dc:"部门ID"`
|
||||
g.Meta `path:"/dept/view" method:"get" tags:"部门" summary:"获取指定信息"`
|
||||
adminin.DeptViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
@@ -35,24 +31,24 @@ type ViewRes struct {
|
||||
|
||||
// EditReq 修改/新增字典数据
|
||||
type EditReq struct {
|
||||
entity.AdminDept
|
||||
g.Meta `path:"/dept/edit" method:"post" tags:"部门" summary:"修改/新增部门"`
|
||||
adminin.DeptEditInp
|
||||
}
|
||||
|
||||
type EditRes struct{}
|
||||
|
||||
// DeleteReq 删除字典类型
|
||||
type DeleteReq struct {
|
||||
Id interface{} `json:"id" v:"required#部门ID不能为空" dc:"部门ID"`
|
||||
g.Meta `path:"/dept/delete" method:"post" tags:"部门" summary:"删除部门"`
|
||||
adminin.DeptDeleteInp
|
||||
}
|
||||
|
||||
type DeleteRes struct{}
|
||||
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"部门ID"`
|
||||
g.Meta `path:"/dept/maxSort" method:"get" tags:"部门" summary:"部门最大排序"`
|
||||
adminin.DeptMaxSortInp
|
||||
}
|
||||
|
||||
type MaxSortRes struct {
|
||||
@@ -61,8 +57,8 @@ type MaxSortRes struct {
|
||||
|
||||
// StatusReq 更新部门状态
|
||||
type StatusReq struct {
|
||||
entity.AdminDept
|
||||
g.Meta `path:"/dept/status" method:"post" tags:"部门" summary:"更新部门状态"`
|
||||
adminin.DeptStatusInp
|
||||
}
|
||||
|
||||
type StatusRes struct{}
|
||||
|
@@ -7,37 +7,30 @@ package dict
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
// DataEditReq 修改/新增字典数据
|
||||
type DataEditReq struct {
|
||||
entity.SysDictData
|
||||
TypeID int64 `json:"typeID" dc:"字典类型ID"`
|
||||
g.Meta `path:"/dictData/edit" method:"post" tags:"字典数据" summary:"修改/新增字典数据"`
|
||||
sysin.DictDataEditInp
|
||||
}
|
||||
|
||||
type DataEditRes struct{}
|
||||
|
||||
// DataDeleteReq 删除字典数据
|
||||
type DataDeleteReq struct {
|
||||
Id interface{} `json:"id" v:"required#字典数据ID不能为空" dc:"字典数据ID"`
|
||||
g.Meta `path:"/dictData/delete" method:"post" tags:"字典数据" summary:"删除字典数据"`
|
||||
sysin.DictDataDeleteInp
|
||||
}
|
||||
|
||||
type DataDeleteRes struct{}
|
||||
|
||||
// DataListReq 查询列表
|
||||
type DataListReq struct {
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
TypeID int64 `json:"typeId" v:"required#字典类型ID不能为空" dc:"字典类型ID"` //
|
||||
Type string `json:"type"`
|
||||
Label string `json:"label"`
|
||||
g.Meta `path:"/dictData/list" method:"get" tags:"字典数据" summary:"获取字典数据列表"`
|
||||
sysin.DictDataListInp
|
||||
}
|
||||
|
||||
type DataListRes struct {
|
||||
@@ -47,7 +40,7 @@ type DataListRes struct {
|
||||
|
||||
type DataSelectReq struct {
|
||||
g.Meta `path:"/dictData/option/{Type}" method:"get" summary:"字典数据" tags:"获取指定字典选项"`
|
||||
Type string `in:"path" v:"required#字典类型不能为空" dc:"字典类型"`
|
||||
sysin.DataSelectInp
|
||||
}
|
||||
|
||||
type DataSelectRes sysin.DataSelectModel
|
||||
|
@@ -7,7 +7,6 @@ package dict
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
@@ -22,16 +21,16 @@ type TypeTreeRes struct {
|
||||
|
||||
// TypeEditReq 修改/新增字典数据
|
||||
type TypeEditReq struct {
|
||||
entity.AdminDept
|
||||
g.Meta `path:"/dictType/edit" method:"post" tags:"字典类型" summary:"修改/新增字典类型"`
|
||||
sysin.DictTypeEditInp
|
||||
}
|
||||
|
||||
type TypeEditRes struct{}
|
||||
|
||||
// TypeDeleteReq 删除字典类型
|
||||
type TypeDeleteReq struct {
|
||||
Id interface{} `json:"id" v:"required#字典类型ID不能为空" dc:"字典类型ID"`
|
||||
g.Meta `path:"/dictType/delete" method:"post" tags:"字典类型" summary:"删除字典类型"`
|
||||
sysin.DictTypeDeleteInp
|
||||
}
|
||||
|
||||
type TypeDeleteRes struct{}
|
||||
|
@@ -7,7 +7,6 @@ package gencodes
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
@@ -25,8 +24,8 @@ type ListRes struct {
|
||||
|
||||
// ViewReq 获取指定信息
|
||||
type ViewReq struct {
|
||||
Id int64 `json:"id" v:"required#生成代码ID不能为空" dc:"生成代码ID"`
|
||||
g.Meta `path:"/genCodes/view" method:"get" tags:"生成代码" summary:"获取指定信息"`
|
||||
sysin.GenCodesViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
@@ -35,8 +34,8 @@ type ViewRes struct {
|
||||
|
||||
// EditReq 修改/新增数据
|
||||
type EditReq struct {
|
||||
entity.SysGenCodes
|
||||
g.Meta `path:"/genCodes/edit" method:"post" tags:"生成代码" summary:"修改/新增生成代码"`
|
||||
sysin.GenCodesEditInp
|
||||
}
|
||||
|
||||
type EditRes struct {
|
||||
@@ -45,32 +44,33 @@ type EditRes struct {
|
||||
|
||||
// DeleteReq 删除
|
||||
type DeleteReq struct {
|
||||
Id interface{} `json:"id" v:"required#生成代码ID不能为空" dc:"生成代码ID"`
|
||||
g.Meta `path:"/genCodes/delete" method:"post" tags:"生成代码" summary:"删除生成代码"`
|
||||
sysin.GenCodesDeleteInp
|
||||
}
|
||||
|
||||
type DeleteRes struct{}
|
||||
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"生成代码ID"`
|
||||
g.Meta `path:"/genCodes/maxSort" method:"get" tags:"生成代码" summary:"生成代码最大排序"`
|
||||
sysin.GenCodesMaxSortInp
|
||||
}
|
||||
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
*sysin.GenCodesMaxSortModel
|
||||
}
|
||||
|
||||
// StatusReq 更新状态
|
||||
type StatusReq struct {
|
||||
entity.SysGenCodes
|
||||
g.Meta `path:"/genCodes/status" method:"post" tags:"生成代码" summary:"更新生成代码状态"`
|
||||
sysin.GenCodesStatusInp
|
||||
}
|
||||
|
||||
type StatusRes struct{}
|
||||
|
||||
type SelectsReq struct {
|
||||
g.Meta `path:"/genCodes/selects" method:"get" tags:"生成代码" summary:"生成入口选项"`
|
||||
sysin.GenCodesSelectsInp
|
||||
}
|
||||
|
||||
type SelectsRes struct {
|
||||
@@ -111,7 +111,7 @@ type PreviewRes struct {
|
||||
// BuildReq 提交生成
|
||||
type BuildReq struct {
|
||||
g.Meta `path:"/genCodes/build" method:"post" tags:"生成代码" summary:"提交生成"`
|
||||
sysin.GenCodesPreviewInp
|
||||
sysin.GenCodesBuildInp
|
||||
}
|
||||
|
||||
type BuildRes struct {
|
||||
|
@@ -21,15 +21,7 @@ type ClearRes struct{}
|
||||
// ExportReq 导出
|
||||
type ExportReq struct {
|
||||
g.Meta `path:"/log/export" method:"get" tags:"日志" summary:"导出日志"`
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
Module string `json:"module" dc:"应用端口"`
|
||||
MemberId int `json:"member_id" dc:"用户ID"`
|
||||
TakeUpTime int `json:"take_up_time" dc:"请求耗时"`
|
||||
Method string `json:"method" dc:"请求方式"`
|
||||
Url string `json:"url" dc:"请求路径"`
|
||||
Ip string `json:"ip" dc:"访问IP"`
|
||||
ErrorCode string `json:"error_code" dc:"状态码"`
|
||||
sysin.LogListInp
|
||||
}
|
||||
|
||||
type ExportRes struct{}
|
||||
@@ -37,16 +29,7 @@ type ExportRes struct{}
|
||||
// ListReq 获取菜单列表
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/log/list" method:"get" tags:"日志" summary:"获取日志列表"`
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
Module string `json:"module" dc:"应用端口"`
|
||||
MemberId int `json:"member_id" dc:"用户ID"`
|
||||
TakeUpTime int `json:"take_up_time" dc:"请求耗时"`
|
||||
Method string `json:"method" dc:"请求方式"`
|
||||
Url string `json:"url" dc:"请求路径"`
|
||||
Ip string `json:"ip" dc:"访问IP"`
|
||||
ErrorCode string `json:"error_code" dc:"状态码"`
|
||||
CreatedAt []int64 `json:"created_at " dc:"访问时间区间"`
|
||||
sysin.LogListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
@@ -57,7 +40,7 @@ type ListRes struct {
|
||||
// DeleteReq 删除
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/log/delete" method:"post" tags:"日志" summary:"删除日志"`
|
||||
Id interface{} `json:"id" v:"required#日志ID不能为空" description:"日志ID"`
|
||||
sysin.LogDeleteInp
|
||||
}
|
||||
|
||||
type DeleteRes struct{}
|
||||
@@ -65,7 +48,7 @@ type DeleteRes struct{}
|
||||
// ViewReq 获取指定信息
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/log/view" method:"get" tags:"日志" summary:"获取指定信息"`
|
||||
Id string `json:"id" v:"required#日志ID不能为空" description:"日志ID"`
|
||||
sysin.LogViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
|
@@ -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 loginlog
|
||||
|
||||
import (
|
||||
|
@@ -107,6 +107,7 @@ type StatusRes struct{}
|
||||
// SelectReq 获取可选的后台用户选项
|
||||
type SelectReq struct {
|
||||
g.Meta `path:"/member/option" method:"get" tags:"用户" summary:"获取可选的后台用户选项"`
|
||||
adminin.MemberSelectInp
|
||||
}
|
||||
|
||||
type SelectRes []*adminin.MemberSelectModel
|
||||
|
@@ -34,7 +34,6 @@ type ListReq struct {
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
//List adminin.MenuList `json:"list" dc:"数据列表"`
|
||||
*adminin.MenuListModel
|
||||
form.PageRes
|
||||
}
|
||||
|
@@ -7,43 +7,35 @@ package monitor
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"hotgo/internal/library/network/tcp"
|
||||
"hotgo/internal/model/input/form"
|
||||
)
|
||||
|
||||
// OfflineReq 下线用户
|
||||
type OfflineReq struct {
|
||||
g.Meta `path:"/monitor/offline" method:"post" tags:"在线用户" summary:"下线用户"`
|
||||
// UserOfflineReq 下线用户
|
||||
type UserOfflineReq struct {
|
||||
g.Meta `path:"/monitor/userOffline" method:"post" tags:"在线用户" summary:"下线用户"`
|
||||
Id string `json:"id" v:"required#SID不能为空" description:"SID"`
|
||||
}
|
||||
|
||||
type OfflineRes struct{}
|
||||
type UserOfflineRes struct{}
|
||||
|
||||
// OnlineListReq 获取在线用户列表
|
||||
type OnlineListReq struct {
|
||||
g.Meta `path:"/monitor/onlineList" method:"get" tags:"在线用户" summary:"获取监控列表"`
|
||||
// UserOnlineListReq 获取在线用户列表
|
||||
type UserOnlineListReq struct {
|
||||
g.Meta `path:"/monitor/userOnlineList" method:"get" tags:"在线用户" summary:"获取在线用户列表"`
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
UserId int64 `json:"userId" description:"用户ID"`
|
||||
Addr string `json:"addr" description:"登录地址"`
|
||||
UserId int64 `json:"userId" description:"用户ID"`
|
||||
Username string `json:"username" description:"用户名"`
|
||||
Addr string `json:"addr" description:"登录地址"`
|
||||
FirstTime []*gtime.Time `json:"firstTime" description:"登录时间"`
|
||||
}
|
||||
|
||||
type OnlineListRes struct {
|
||||
List []*OnlineModel `json:"list" description:"数据列表"`
|
||||
type UserOnlineListRes struct {
|
||||
List []*UserOnlineModel `json:"list" description:"数据列表"`
|
||||
form.PageRes
|
||||
}
|
||||
|
||||
// OnlineViewReq 获取指定信息
|
||||
type OnlineViewReq struct {
|
||||
g.Meta `path:"/monitor/onlineView" method:"get" tags:"在线用户" summary:"获取指定用户信息"`
|
||||
Id string `json:"id" v:"required#SID不能为空" description:"SID"`
|
||||
}
|
||||
|
||||
type OnlineViewRes struct {
|
||||
*OnlineModel
|
||||
}
|
||||
|
||||
type OnlineModel struct {
|
||||
type UserOnlineModel struct {
|
||||
ID string `json:"id"` // 连接唯一标识
|
||||
Addr string `json:"addr"` // 客户端地址
|
||||
Os string `json:"os"` // 客户端系统名称
|
||||
@@ -56,14 +48,60 @@ type OnlineModel struct {
|
||||
Avatar string `json:"avatar"` // 头像
|
||||
}
|
||||
|
||||
type OnlineModels []*OnlineModel
|
||||
// NetOnlineListReq 获取在线服务列表
|
||||
type NetOnlineListReq struct {
|
||||
g.Meta `path:"/monitor/netOnlineList" method:"get" tags:"在线服务" summary:"获取在线服务列表"`
|
||||
form.PageReq
|
||||
Name string `json:"name" description:"应用名称"`
|
||||
Group string `json:"group" description:"分组"`
|
||||
AppId string `json:"appId" description:"APPID"`
|
||||
Addr string `json:"addr" description:"登录地址"`
|
||||
FirstTime []*gtime.Time `json:"firstTime" description:"登录时间"`
|
||||
}
|
||||
|
||||
func (p OnlineModels) Len() int {
|
||||
return len(p)
|
||||
type NetOnlineListRes struct {
|
||||
List []*NetOnlineModel `json:"list" description:"数据列表"`
|
||||
form.PageRes
|
||||
}
|
||||
func (p OnlineModels) Swap(i, j int) {
|
||||
p[i], p[j] = p[j], p[i]
|
||||
|
||||
type NetOnlineModel struct {
|
||||
*tcp.AuthMeta
|
||||
Id int64 `json:"id" description:"连接ID"`
|
||||
IsAuth bool `json:"isAuth" description:"是否认证"`
|
||||
Addr string `json:"addr" description:"登录地址"`
|
||||
Port string `json:"port" description:"连接端口"`
|
||||
FirstTime int64 `json:"firstTime" description:"首次连接时间"`
|
||||
HeartbeatTime int64 `json:"heartbeatTime" description:"上次心跳时间"`
|
||||
LicenseId int64 `json:"licenseId" description:"许可ID"`
|
||||
LicenseName string `json:"licenseName" description:"许可名称"`
|
||||
LoginTimes int64 `json:"loginTimes" description:"许可累计登录次数"`
|
||||
Online int `json:"online" description:"许可在线数量"`
|
||||
OnlineLimit int `json:"onlineLimit" description:"许可在线数量限制"`
|
||||
Desc string `json:"desc" description:"许可说明"`
|
||||
Proto string `json:"proto" description:"网络协议"`
|
||||
}
|
||||
func (p OnlineModels) Less(i, j int) bool {
|
||||
return p[j].FirstTime < p[i].FirstTime
|
||||
|
||||
// NetOptionReq 获取服务选项
|
||||
type NetOptionReq struct {
|
||||
g.Meta `path:"/monitor/netOption" method:"get" tags:"在线服务" summary:"获取服务选项"`
|
||||
}
|
||||
|
||||
type NetOptionRes struct {
|
||||
LicenseGroup form.Selects `json:"licenseGroup" dc:"授权分组"`
|
||||
Routes []*RouteSelect `json:"routes" dc:"路由选项"`
|
||||
}
|
||||
|
||||
type RouteSelect struct {
|
||||
Value interface{} `json:"value"`
|
||||
Label string `json:"label"`
|
||||
Disabled bool `json:"disabled"`
|
||||
IsRPC bool `json:"isRPC"`
|
||||
}
|
||||
|
||||
// NetOfflineReq 下线服务
|
||||
type NetOfflineReq struct {
|
||||
g.Meta `path:"/monitor/netOffline" method:"post" tags:"在线服务" summary:"下线服务"`
|
||||
Id int64 `json:"id" v:"required#连接ID不能为空" description:"连接ID"`
|
||||
}
|
||||
|
||||
type NetOfflineRes struct{}
|
||||
|
@@ -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 notice
|
||||
|
||||
import (
|
||||
@@ -56,7 +55,7 @@ type MaxSortReq struct {
|
||||
}
|
||||
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
*adminin.NoticeMaxSortModel
|
||||
}
|
||||
|
||||
// StatusReq 更新公告状态
|
||||
|
@@ -7,7 +7,6 @@ package post
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/adminin"
|
||||
"hotgo/internal/model/input/form"
|
||||
)
|
||||
@@ -15,7 +14,7 @@ import (
|
||||
// EditReq 修改/新增岗位
|
||||
type EditReq struct {
|
||||
g.Meta `path:"/post/edit" method:"post" tags:"岗位" summary:"修改/新增岗位"`
|
||||
entity.AdminPost
|
||||
adminin.PostEditInp
|
||||
}
|
||||
|
||||
type EditRes struct{}
|
||||
@@ -23,7 +22,7 @@ type EditRes struct{}
|
||||
// DeleteReq 删除岗位
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/post/delete" method:"post" tags:"岗位" summary:"删除岗位"`
|
||||
Id interface{} `json:"id" v:"required#岗位ID不能为空" description:"岗位ID"`
|
||||
adminin.PostDeleteInp
|
||||
}
|
||||
|
||||
type DeleteRes struct{}
|
||||
@@ -31,21 +30,17 @@ type DeleteRes struct{}
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
g.Meta `path:"/post/maxSort" method:"get" tags:"岗位" summary:"岗位最大排序"`
|
||||
Id int64 `json:"id" description:"岗位ID"`
|
||||
adminin.PostMaxSortInp
|
||||
}
|
||||
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
*adminin.PostMaxSortModel
|
||||
}
|
||||
|
||||
// ListReq 获取列表
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/post/list" method:"get" tags:"岗位" summary:"获取岗位列表"`
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
Name string `json:"name" description:"岗位名称"`
|
||||
Code string `json:"code" description:"岗位编码"`
|
||||
adminin.PostListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
@@ -56,39 +51,17 @@ type ListRes struct {
|
||||
// ViewReq 获取指定信息
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/post/view" method:"get" tags:"岗位" summary:"获取指定信息"`
|
||||
Id string `json:"id" v:"required#岗位ID不能为空" description:"岗位ID"`
|
||||
adminin.PostViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
*adminin.PostViewModel
|
||||
}
|
||||
|
||||
// CodeUniqueReq 编码是否唯一
|
||||
type CodeUniqueReq struct {
|
||||
g.Meta `path:"/post/code_unique" method:"get" tags:"岗位" summary:"岗位编码是否唯一"`
|
||||
Code string `json:"code" v:"required#岗位编码不能为空" description:"岗位编码"`
|
||||
Id int64 `json:"id" description:"岗位ID"`
|
||||
}
|
||||
|
||||
type CodeUniqueRes struct {
|
||||
IsUnique bool `json:"is_unique" description:"是否唯一"`
|
||||
}
|
||||
|
||||
// NameUniqueReq 名称是否唯一
|
||||
type NameUniqueReq struct {
|
||||
g.Meta `path:"/post/name_unique" method:"get" tags:"岗位" summary:"岗位名称是否唯一"`
|
||||
Name string `json:"name" v:"required#岗位名称不能为空" description:"岗位名称"`
|
||||
Id int64 `json:"id" description:"岗位ID"`
|
||||
}
|
||||
|
||||
type NameUniqueRes struct {
|
||||
IsUnique bool `json:"is_unique" description:"是否唯一"`
|
||||
}
|
||||
|
||||
// StatusReq 更新状态
|
||||
type StatusReq struct {
|
||||
entity.AdminPost
|
||||
g.Meta `path:"/post/status" method:"post" tags:"岗位" summary:"更新岗位状态"`
|
||||
adminin.PostStatusInp
|
||||
}
|
||||
|
||||
type StatusRes struct{}
|
||||
|
@@ -7,19 +7,14 @@ package provinces
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
// ListReq 查询列表
|
||||
type ListReq struct {
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
g.Meta `path:"/provinces/list" method:"get" tags:"省市区" summary:"获取省市区列表"`
|
||||
g.Meta `path:"/provinces/list" method:"get" tags:"省市区" summary:"获取省市区列表"`
|
||||
sysin.ProvincesListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
@@ -29,8 +24,8 @@ type ListRes struct {
|
||||
|
||||
// ViewReq 获取信息
|
||||
type ViewReq struct {
|
||||
Id int64 `json:"id" v:"required#省市区ID不能为空" dc:"省市区ID"`
|
||||
g.Meta `path:"/provinces/view" method:"get" tags:"省市区" summary:"获取指定信息"`
|
||||
sysin.ProvincesViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
@@ -56,6 +51,7 @@ type DeleteRes struct{}
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
g.Meta `path:"/provinces/maxSort" method:"get" tags:"省市区" summary:"省市区最大排序"`
|
||||
sysin.ProvincesMaxSortInp
|
||||
}
|
||||
|
||||
type MaxSortRes struct {
|
||||
@@ -64,8 +60,8 @@ type MaxSortRes struct {
|
||||
|
||||
// StatusReq 更新状态
|
||||
type StatusReq struct {
|
||||
entity.SysProvinces
|
||||
g.Meta `path:"/provinces/status" method:"post" tags:"省市区" summary:"更新省市区状态"`
|
||||
sysin.ProvincesStatusInp
|
||||
}
|
||||
|
||||
type StatusRes struct{}
|
||||
|
@@ -27,34 +27,8 @@ type DynamicReq struct {
|
||||
g.Meta `path:"/role/dynamic" method:"get" tags:"路由" summary:"获取动态路由" description:"获取登录用户动态路由"`
|
||||
}
|
||||
|
||||
type DynamicMeta struct {
|
||||
Title string `json:"title" description:"菜单标题"`
|
||||
Icon string `json:"icon" description:"菜单图标"`
|
||||
NoCache bool `json:"noCache" description:"是否缓存"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
}
|
||||
|
||||
type DynamicBase struct {
|
||||
Id int64 `json:"id" description:"菜单ID"`
|
||||
Pid int64 `json:"pid" description:"父ID"`
|
||||
Name string `json:"name" description:"菜单名称"`
|
||||
Code string `json:"code" description:"菜单编码"`
|
||||
Path string `json:"path" description:"路由地址"`
|
||||
Hidden bool `json:"hidden" description:"是否隐藏"`
|
||||
Redirect string `json:"redirect" description:"重定向"`
|
||||
Component string `json:"component" description:"组件路径"`
|
||||
AlwaysShow bool `json:"alwaysShow" description:"暂时不知道干啥"`
|
||||
IsFrame string `json:"isFrame" description:"是否为外链(0是 1否)"`
|
||||
Meta *DynamicMeta `json:"meta" description:"配置数据集"`
|
||||
}
|
||||
|
||||
type DynamicMenu struct {
|
||||
DynamicBase
|
||||
Children []*DynamicBase `json:"children" description:"子菜单"`
|
||||
}
|
||||
|
||||
type DynamicRes struct {
|
||||
List []adminin.MenuRoute `json:"list" description:"数据列表"`
|
||||
List []*adminin.MenuRoute `json:"list" description:"数据列表"`
|
||||
}
|
||||
|
||||
type UpdatePermissionsReq struct {
|
||||
|
74
server/api/admin/servelicense/servelicense.go
Normal file
74
server/api/admin/servelicense/servelicense.go
Normal file
@@ -0,0 +1,74 @@
|
||||
// Package servelicense
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2023 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
// @AutoGenerate Version 2.7.6
|
||||
package servelicense
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
// ListReq 查询服务许可证列表
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/serveLicense/list" method:"get" tags:"服务许可证" summary:"获取服务许可证列表"`
|
||||
sysin.ServeLicenseListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.ServeLicenseListModel `json:"list" dc:"数据列表"`
|
||||
}
|
||||
|
||||
// ExportReq 导出服务许可证列表
|
||||
type ExportReq struct {
|
||||
g.Meta `path:"/serveLicense/export" method:"get" tags:"服务许可证" summary:"导出服务许可证列表"`
|
||||
sysin.ServeLicenseListInp
|
||||
}
|
||||
|
||||
type ExportRes struct{}
|
||||
|
||||
// ViewReq 获取服务许可证指定信息
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/serveLicense/view" method:"get" tags:"服务许可证" summary:"获取服务许可证指定信息"`
|
||||
sysin.ServeLicenseViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
*sysin.ServeLicenseViewModel
|
||||
}
|
||||
|
||||
// EditReq 修改/新增服务许可证
|
||||
type EditReq struct {
|
||||
g.Meta `path:"/serveLicense/edit" method:"post" tags:"服务许可证" summary:"修改/新增服务许可证"`
|
||||
sysin.ServeLicenseEditInp
|
||||
}
|
||||
|
||||
type EditRes struct{}
|
||||
|
||||
// DeleteReq 删除服务许可证
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/serveLicense/delete" method:"post" tags:"服务许可证" summary:"删除服务许可证"`
|
||||
sysin.ServeLicenseDeleteInp
|
||||
}
|
||||
|
||||
type DeleteRes struct{}
|
||||
|
||||
// StatusReq 更新服务许可证状态
|
||||
type StatusReq struct {
|
||||
g.Meta `path:"/serveLicense/status" method:"post" tags:"服务许可证" summary:"更新服务许可证状态"`
|
||||
sysin.ServeLicenseStatusInp
|
||||
}
|
||||
|
||||
type StatusRes struct{}
|
||||
|
||||
// AssignRouterReq 分配服务许可证路由
|
||||
type AssignRouterReq struct {
|
||||
g.Meta `path:"/serveLicense/assignRouter" method:"post" tags:"服务许可证" summary:"分配服务许可证路由"`
|
||||
sysin.ServeLicenseAssignRouterInp
|
||||
}
|
||||
|
||||
type AssignRouterRes struct{}
|
@@ -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 servelog
|
||||
|
||||
import (
|
||||
|
@@ -2,7 +2,6 @@ package smslog
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
@@ -20,8 +19,8 @@ type ListRes struct {
|
||||
|
||||
// ViewReq 获取指定信息
|
||||
type ViewReq struct {
|
||||
Id int64 `json:"id" v:"required#短信记录ID不能为空" dc:"短信记录ID"`
|
||||
g.Meta `path:"/smsLog/view" method:"get" tags:"短信记录" summary:"获取指定信息"`
|
||||
sysin.SmsLogViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
@@ -30,42 +29,24 @@ type ViewRes struct {
|
||||
|
||||
// EditReq 修改/新增数据
|
||||
type EditReq struct {
|
||||
entity.SysSmsLog
|
||||
g.Meta `path:"/smsLog/edit" method:"post" tags:"短信记录" summary:"修改/新增短信记录"`
|
||||
sysin.SmsLogEditInp
|
||||
}
|
||||
|
||||
type EditRes struct{}
|
||||
|
||||
// DeleteReq 删除
|
||||
type DeleteReq struct {
|
||||
Id interface{} `json:"id" v:"required#短信记录ID不能为空" dc:"短信记录ID"`
|
||||
g.Meta `path:"/smsLog/delete" method:"post" tags:"短信记录" summary:"删除短信记录"`
|
||||
sysin.SmsLogDeleteInp
|
||||
}
|
||||
|
||||
type DeleteRes struct{}
|
||||
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"短信记录ID"`
|
||||
g.Meta `path:"/smsLog/maxSort" method:"get" tags:"短信记录" summary:"短信记录最大排序"`
|
||||
}
|
||||
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
}
|
||||
|
||||
// StatusReq 更新状态
|
||||
type StatusReq struct {
|
||||
entity.SysSmsLog
|
||||
g.Meta `path:"/smsLog/status" method:"post" tags:"短信记录" summary:"更新短信记录状态"`
|
||||
sysin.SmsLogStatusInp
|
||||
}
|
||||
|
||||
type StatusRes struct{}
|
||||
|
||||
// SendTestReq 更新状态
|
||||
type SendTestReq struct {
|
||||
entity.SysSmsLog
|
||||
g.Meta `path:"/smsLog/sendTest" method:"post" tags:"短信记录" summary:"发送测试短信"`
|
||||
}
|
||||
|
||||
type SendTestRes struct{}
|
||||
|
@@ -1,18 +0,0 @@
|
||||
// Package user
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2023 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
package user
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type HelloReq struct {
|
||||
g.Meta `path:"/hello" tags:"Hello" method:"get" summary:"You first hello api"`
|
||||
}
|
||||
|
||||
type HelloRes struct {
|
||||
g.Meta `mime:"text/html" example:"string"`
|
||||
}
|
@@ -12,7 +12,7 @@ type NotifyAliPayReq struct {
|
||||
|
||||
type NotifyAliPayRes struct {
|
||||
g.Meta `mime:"text/html" type:"string" example:"<html/>"`
|
||||
payin.PayNotifyModel
|
||||
*payin.PayNotifyModel
|
||||
}
|
||||
|
||||
// NotifyWxPayReq 微信支付回调
|
||||
@@ -20,7 +20,9 @@ type NotifyWxPayReq struct {
|
||||
g.Meta `path:"/pay/notify/wxpay" method:"post" tags:"支付异步通知" summary:"微信支付回调"`
|
||||
}
|
||||
|
||||
type NotifyWxPayRes payin.PayNotifyModel
|
||||
type NotifyWxPayRes struct {
|
||||
*payin.PayNotifyModel
|
||||
}
|
||||
|
||||
// NotifyQQPayReq QQ支付回调
|
||||
type NotifyQQPayReq struct {
|
||||
@@ -29,5 +31,5 @@ type NotifyQQPayReq struct {
|
||||
|
||||
type NotifyQQPayRes struct {
|
||||
g.Meta `mime:"text/xml" type:"string"`
|
||||
payin.PayNotifyModel
|
||||
*payin.PayNotifyModel
|
||||
}
|
||||
|
16
server/api/servmsg/auth.go
Normal file
16
server/api/servmsg/auth.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package servmsg
|
||||
|
||||
import (
|
||||
"hotgo/internal/library/network/tcp"
|
||||
"hotgo/internal/model/input/servmsgin"
|
||||
)
|
||||
|
||||
// AuthSummaryReq 授权信息
|
||||
type AuthSummaryReq struct {
|
||||
}
|
||||
|
||||
// AuthSummaryRes 响应授权信息
|
||||
type AuthSummaryRes struct {
|
||||
tcp.ServerRes
|
||||
Data *servmsgin.AuthSummaryModel `json:"data,omitempty" description:"数据集"`
|
||||
}
|
46
server/api/servmsg/cron.go
Normal file
46
server/api/servmsg/cron.go
Normal file
@@ -0,0 +1,46 @@
|
||||
package servmsg
|
||||
|
||||
import (
|
||||
"hotgo/internal/library/network/tcp"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
// CronDeleteReq 删除任务
|
||||
type CronDeleteReq struct {
|
||||
*sysin.CronDeleteInp
|
||||
}
|
||||
|
||||
type CronDeleteRes struct {
|
||||
tcp.ServerRes
|
||||
sysin.CronDeleteModel
|
||||
}
|
||||
|
||||
// CronEditReq 编辑任务
|
||||
type CronEditReq struct {
|
||||
*sysin.CronEditInp
|
||||
}
|
||||
|
||||
type CronEditRes struct {
|
||||
tcp.ServerRes
|
||||
*sysin.CronEditModel
|
||||
}
|
||||
|
||||
// CronStatusReq 修改任务状态
|
||||
type CronStatusReq struct {
|
||||
*sysin.CronStatusInp
|
||||
}
|
||||
|
||||
type CronStatusRes struct {
|
||||
tcp.ServerRes
|
||||
*sysin.CronStatusModel
|
||||
}
|
||||
|
||||
// CronOnlineExecReq 在线执行
|
||||
type CronOnlineExecReq struct {
|
||||
*sysin.OnlineExecInp
|
||||
}
|
||||
|
||||
type CronOnlineExecRes struct {
|
||||
tcp.ServerRes
|
||||
*sysin.OnlineExecModel
|
||||
}
|
28
server/api/servmsg/example.go
Normal file
28
server/api/servmsg/example.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package servmsg
|
||||
|
||||
import (
|
||||
"hotgo/internal/library/network/tcp"
|
||||
"hotgo/internal/model/input/servmsgin"
|
||||
)
|
||||
|
||||
// 一些例子.
|
||||
|
||||
// ExampleHelloReq 一个tcp请求例子
|
||||
type ExampleHelloReq struct {
|
||||
Name string `json:"name" description:"名字"`
|
||||
}
|
||||
|
||||
type ExampleHelloRes struct {
|
||||
tcp.ServerRes
|
||||
Data *servmsgin.ExampleHelloModel `json:"data,omitempty" description:"数据集"`
|
||||
}
|
||||
|
||||
// ExampleRPCHelloReq 一个rpc请求例子
|
||||
type ExampleRPCHelloReq struct {
|
||||
Name string `json:"name" description:"名字"`
|
||||
}
|
||||
|
||||
type ExampleRPCHelloRes struct {
|
||||
tcp.ServerRes
|
||||
Data *servmsgin.ExampleHelloModel `json:"data,omitempty" description:"数据集"`
|
||||
}
|
@@ -8,7 +8,7 @@ import (
|
||||
// SendToTagReq 发送标签消息
|
||||
type SendToTagReq struct {
|
||||
g.Meta `path:"/send/toTag" method:"post" tags:"WebSocket" summary:"发送标签消息"`
|
||||
websocketin.SendToTagInput
|
||||
websocketin.SendToTagInp
|
||||
}
|
||||
|
||||
type SendToTagRes struct {
|
||||
|
Reference in New Issue
Block a user