From 632a7e0835d811b8ad3594f294668f8d32c789b1 Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Wed, 1 Feb 2023 10:39:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/tech_converge_info.go | 1 + services/tech/tech.go | 1 + 2 files changed, 2 insertions(+) diff --git a/models/tech_converge_info.go b/models/tech_converge_info.go index 320286cfa..a7179b0fc 100644 --- a/models/tech_converge_info.go +++ b/models/tech_converge_info.go @@ -346,6 +346,7 @@ type TechRepoInfoAdmin struct { Status int `json:"status"` ProjectNumber string `json:"no"` ProjectName string `json:"name"` + ApplyYear int `json:"apply_year"` Institution string `json:"institution"` Province string `json:"province"` Category string `json:"category"` diff --git a/services/tech/tech.go b/services/tech/tech.go index 3698a2500..1b90603d7 100644 --- a/services/tech/tech.go +++ b/services/tech/tech.go @@ -77,6 +77,7 @@ func GetAdminRepoInfo(opts *models.SearchUserRepoOpt) ([]*models.TechRepoInfoAdm techRepoInfoAdmin.ProjectNumber = baseInfo.ProjectNumber techRepoInfoAdmin.ProjectName = baseInfo.ProjectName techRepoInfoAdmin.Institution = baseInfo.Institution + techRepoInfoAdmin.ApplyYear = baseInfo.ApplyYear techRepoInfoAdmin.Province = baseInfo.Province techRepoInfoAdmin.Category = baseInfo.Category techRepoInfoAdmin.Owner = baseInfo.Owner