2023-08-07 17:58:24 +08:00
|
|
|
// Package servmsg
|
|
|
|
// @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
|
2023-07-20 18:01:10 +08:00
|
|
|
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:"数据集"`
|
|
|
|
}
|