feat:完善项目信息
This commit is contained in:
@ -35,7 +35,7 @@ func GetTenantID() ApiHandle {
|
||||
value := c.GetHeader(config.ContentForTenantID)
|
||||
|
||||
if value == "" {
|
||||
return 0
|
||||
return uint64(0)
|
||||
}
|
||||
return utils.StringToUnit64(value)
|
||||
}
|
||||
|
@ -2,7 +2,6 @@ package api
|
||||
|
||||
import (
|
||||
"SciencesServer/app/basic/controller"
|
||||
"SciencesServer/utils"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@ -26,7 +25,7 @@ func (a *Config) Industry(c *gin.Context) {
|
||||
APIFailure(err.(error))(c)
|
||||
return
|
||||
}
|
||||
data := controller.NewConfig().Industry(utils.StringToUnit64(form.ParentID))
|
||||
data := controller.NewConfig().Industry((&IDStringForm{ID: form.ParentID}).Convert())
|
||||
APISuccess(data)(c)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user