mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-09 18:53:46 +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:
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:"数据集"`
|
||||
}
|
||||
Reference in New Issue
Block a user