zhangzengfei
2024-04-18 ec49b2e27fd101b4cd5da34165fd8bf348cbc418
调整校时接口数据格式
2个文件已修改
7 ■■■■■ 已修改文件
controller/systemCtl.go 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vo/message.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
controller/systemCtl.go
@@ -5,7 +5,6 @@
    "gat1400Exchange/pkg/logger"
    "gat1400Exchange/service"
    "net/http"
    "strconv"
    "time"
    "gat1400Exchange/config"
@@ -110,10 +109,10 @@
// 时间校准
func (s SystemController) Time(c *gin.Context) {
    iTime, _ := strconv.ParseInt(time.Now().Format("20060102150405"), 10, 64)
    //iTime, _ := strconv.ParseInt(time.Now().Format("20060102150405"), 10, 64)
    rspMsg := vo.ResponseSystemTime{
        VIIDServerID: config.ServeConf.ID,
        LocalTime:    iTime,
        LocalTime:    time.Now().Format("20060102150405"),
    }
    c.JSON(http.StatusOK, gin.H{"SystemTimeObject": rspMsg})
vo/message.go
@@ -23,6 +23,6 @@
type ResponseSystemTime struct {
    VIIDServerID string
    TimeMode     interface{}
    LocalTime    int64
    LocalTime    string
    TimeZone     interface{}
}