zhangzengfei
2024-10-22 a254bc563003a9e7b3a8f1307df38b8ae4274a4f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package controller
 
import (
    "gat1400Exchange/nvcs"
    "github.com/gin-gonic/gin"
    "net/http"
)
 
type NVCSController struct {
}
 
// 构造函数
func NewNVCSController() SubPlatformController {
    controller := SubPlatformController{}
 
    return controller
}
 
func (n NVCSController) RunStatus(c *gin.Context) {
    var runState = nvcs.CurrentRunState()
 
    c.JSON(http.StatusOK, gin.H{"success": true, "data": runState, "msg": "ok"})
}