feat:完善信息
This commit is contained in:
@ -9,6 +9,7 @@ import (
|
||||
config2 "SciencesServer/config"
|
||||
"SciencesServer/utils"
|
||||
"errors"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -35,8 +36,10 @@ type (
|
||||
}
|
||||
// ExpertDetail 专家详细信息
|
||||
ExpertDetail struct {
|
||||
ID string `json:"id"`
|
||||
TenantID string `json:"tenant_id"`
|
||||
ID string `json:"id"`
|
||||
TenantID string `json:"tenant_id"`
|
||||
ResearchID string `json:"research_id"`
|
||||
LaboratoryID string `json:"laboratory_id"`
|
||||
*model2.ManageExpert
|
||||
Industrys []*config.Industry `json:"industrys"`
|
||||
Keywords []string `json:"keywords"`
|
||||
@ -112,6 +115,8 @@ func (c *Expert) Detail(id uint64) (*ExpertDetail, error) {
|
||||
return &ExpertDetail{
|
||||
ID: out.GetEncodeID(),
|
||||
TenantID: out.GetEncodeTenantID(),
|
||||
ResearchID: (&model2.Model{ID: out.ResearchID}).GetEncodeID(),
|
||||
LaboratoryID: (&model2.Model{ID: out.LaboratoryID}).GetEncodeID(),
|
||||
ManageExpert: out.ManageExpert,
|
||||
Industrys: _industrys,
|
||||
Keywords: out.GetKeywordAttribute(),
|
||||
@ -148,6 +153,7 @@ func (c *Expert) Form(params *BasicParams, other *config.IdentityForExpert) erro
|
||||
}
|
||||
}
|
||||
}
|
||||
fmt.Println(utils.AnyToJSON(other))
|
||||
mManageExpert.TenantID = c.TenantID
|
||||
mManageExpert.ResearchID = other.ConvertResearch()
|
||||
mManageExpert.LaboratoryID = other.ConvertLaboratory()
|
||||
|
||||
Reference in New Issue
Block a user