package routers import ( "github.com/gin-gonic/gin" "kpt.xdmy/apiserver/model" "kpt.xdmy/apiserver/model/http" ) func McsControl(c *gin.Context) { mpd := new(model.McsPostDataReq) if !Bind(c, mpd) { return } resp, err := svc.McsPostHttp(mpd) eJSON(c, resp, err) } func McsAccounts(c *gin.Context) { sa := []model.McsAccount{ { DeviceId: "apptest2", UserID: "PC", Password: "mcs8", }, } resp := &http.Response{ Code: 200, Data: sa, } eJSON(c, resp, nil) }