Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerConfigHandler ¶
type ServerConfigHandler struct {
// contains filtered or unexported fields
}
func NewServerConfigHandler ¶
func NewServerConfigHandler(i *do.Injector) (*ServerConfigHandler, error)
func (*ServerConfigHandler) Get ¶
func (h *ServerConfigHandler) Get(c *web.Context) error
Get 获取服务配置
@Summary 获取服务配置
@Description 返回当前服务的产品形态、SaaS 区域和版本信息,用于前端区分部署形态和升级状态。
@Tags 【服务】配置信息
@Accept json
@Produce json
@Success 200 {object} web.Resp{data=domain.ServerConfig} "获取成功"
@Failure 500 {object} web.Resp "服务器内部错误"
@Router /api/v1/server/config [get]
Click to show internal directories.
Click to hide internal directories.