feat:完善项目信息

This commit is contained in:
henry
2022-01-12 17:29:05 +08:00
parent 4ec0953a29
commit 5ca8b3f7ff
18 changed files with 281 additions and 255 deletions

View File

@ -35,7 +35,7 @@ func GetTenantID() ApiHandle {
value := c.GetHeader(config.ContentForTenantID)
if value == "" {
return 0
return uint64(0)
}
return utils.StringToUnit64(value)
}

View File

@ -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)
}

View File

@ -4,7 +4,6 @@ import (
"SciencesServer/app/basic/config"
model2 "SciencesServer/app/common/model"
config2 "SciencesServer/config"
"fmt"
)
type Config struct{}
@ -53,7 +52,7 @@ func (c *Config) Industry(parentID uint64) []*IndustryInfo {
for _, v := range out {
list = append(list, &IndustryInfo{
ID: fmt.Sprintf("%d", v.ID),
ID: v.GetEncodeID(),
Name: v.Name,
})
}