1
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
|
||||
v1 "blazing/modules/base/api/v1"
|
||||
"blazing/modules/base/service"
|
||||
config "blazing/modules/config/service"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
@@ -82,15 +81,15 @@ func (c *BaseOpen) RefreshToken(ctx context.Context, req *RefreshTokenReq) (res
|
||||
return
|
||||
}
|
||||
|
||||
// 获取服务器当前ip和端口
|
||||
type GetPortReq struct {
|
||||
g.Meta `path:"/getport" method:"GET"`
|
||||
}
|
||||
// // 获取服务器当前ip和端口
|
||||
// type GetPortReq struct {
|
||||
// g.Meta `path:"/getport" method:"GET"`
|
||||
// }
|
||||
|
||||
func (c *BaseOpen) GetPort(ctx context.Context, req *GetPortReq) (res *cool.BaseRes, err error) {
|
||||
res = &cool.BaseRes{}
|
||||
res.Data = config.NewServerService().GetPort()
|
||||
// func (c *BaseOpen) GetPort(ctx context.Context, req *GetPortReq) (res *cool.BaseRes, err error) {
|
||||
// res = &cool.BaseRes{}
|
||||
// res.Data = config.NewServerService().GetPort()
|
||||
|
||||
return
|
||||
// return
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user