|
@@ -3,14 +3,14 @@ package service
|
|
|
import (
|
|
|
"context"
|
|
|
"fmt"
|
|
|
- "github.com/issue9/conv"
|
|
|
- "github.com/sirupsen/logrus"
|
|
|
- "time"
|
|
|
"youngee_b_api/db"
|
|
|
"youngee_b_api/model/common_model"
|
|
|
"youngee_b_api/model/gorm_model"
|
|
|
"youngee_b_api/model/http_model"
|
|
|
"youngee_b_api/pack"
|
|
|
+
|
|
|
+ "github.com/issue9/conv"
|
|
|
+ "github.com/sirupsen/logrus"
|
|
|
)
|
|
|
|
|
|
var Project *project
|
|
@@ -34,7 +34,7 @@ func (*project) Create(ctx context.Context, newProject http_model.CreateProjectR
|
|
|
TalentType: newProject.TalentType,
|
|
|
ProjectPlatform: newProject.ProjectPlatform,
|
|
|
ProjectForm: newProject.ProjectForm,
|
|
|
- RecruitDdl: time.Now().UTC().Local(),
|
|
|
+ RecruitDdl: newProject.RecruitDdl,
|
|
|
ProjectDetail: newProject.ProjectDetail,
|
|
|
ContentType: newProject.ContentType,
|
|
|
EnterpriseID: enterpriseID,
|
|
@@ -194,6 +194,7 @@ func (*project) GetPorjectDetail(ctx context.Context, projectID int64) (*http_mo
|
|
|
TalentType: conv.MustString(project.TalentType),
|
|
|
RecruitDdl: project.RecruitDdl,
|
|
|
ContentType: conv.MustString(project.ContentType),
|
|
|
+ ProjectDetail: conv.MustString(project.ProjectDetail),
|
|
|
ProductID: conv.MustString(project.ProductID),
|
|
|
EnterpriseID: conv.MustString(project.EnterpriseID),
|
|
|
CreateAt: project.CreatedAt,
|