Commit 198cad75 authored by szh's avatar szh

更新授权挖矿 地址统计数据逻辑

parent 85175ef0
...@@ -8,6 +8,7 @@ import ( ...@@ -8,6 +8,7 @@ import (
"chain33-pai/service/pai_service" "chain33-pai/service/pai_service"
"chain33-pai/service/stat_service" "chain33-pai/service/stat_service"
"chain33-pai/pkg/logging" "chain33-pai/pkg/logging"
"chain33-pai/models"
) )
...@@ -39,7 +40,7 @@ func GetDevstatus(c *gin.Context) { ...@@ -39,7 +40,7 @@ func GetDevstatus(c *gin.Context) {
func GetTicketInfo(c *gin.Context) { func GetTicketInfo(c *gin.Context) {
appG := app.Gin{C: c} appG := app.Gin{C: c}
var req pai_service.ReqTicketInfo var req models.ReqTicketInfo
err := c.ShouldBindJSON(&req) err := c.ShouldBindJSON(&req)
if err != nil { if err != nil {
appG.Response(http.StatusOK, e.INVALID_PARAMS, nil) appG.Response(http.StatusOK, e.INVALID_PARAMS, nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment