Files
2021-11-01 11:19:49 +08:00

41 lines
1.6 KiB
Go

package config
// Area 区域
type Area struct {
Province string `json:"province" form:"province"`
City string `json:"city" form:"city"`
District string `json:"district" form:"district"`
Address string `json:"address" form:"address"`
}
type (
// IdentityForCompany 公司附加信息
IdentityForCompany struct{}
// IdentityForExpert 专家附加信息
IdentityForExpert struct {
TenantID uint64 `json:"tenant_id" form:"tenant_id"`
Longitude float64 `json:"longitude" form:"longitude"` // 经度
Latitude float64 `json:"latitude" form:"latitude"` // 纬度
School string `json:"school" form:"school"`
Major string `json:"major" form:"major"`
Job string `json:"job" form:"job"`
Title string `json:"title" form:"title"`
WorkAt string `json:"work_at" form:"work_at"`
Keyword string `json:"keyword" form:"keyword"`
Research string `json:"research" form:"research"` // 研究方向
}
// IdentityForResearch 研究机构
IdentityForResearch struct {
Longitude float64 `json:"longitude" form:"longitude"` // 经度
Latitude float64 `json:"latitude" form:"latitude"` // 纬度
Research string `json:"research" form:"research"` // 研究领域方向
}
// IdentityForLaboratory 实验室
IdentityForLaboratory struct {
TenantID uint64 `json:"tenant_id" form:"tenant_id"`
Longitude float64 `json:"longitude" form:"longitude"` // 经度
Latitude float64 `json:"latitude" form:"latitude"` // 纬度
Research map[int]string `json:"research" form:"research"` // 研究领域方向
}
)