@@ -20,17 +20,9 @@ type AcceptRejectProject struct {
20
20
}
21
21
22
22
type ProjectOrg struct {
23
- Id uint `json:"id"`
24
- Name string `json:"name"`
25
- Description string `json:"description"`
26
- Tags []string `json:"tags"`
27
- RepoLink string `json:"repo_link"`
28
- CommChannel string `json:"comm_channel"`
29
- ReadmeLink string `json:"readme_link"`
30
- Mentor Mentor `json:"mentor"`
31
- SecondaryMentor Mentor `json:"secondary_mentor"`
32
- ProjectStatus bool `json:"project_status"`
33
- StatusRemark string `json:"status_remark"`
23
+ ProjectStatus bool `json:"project_status"`
24
+ StatusRemark string `json:"status_remark"`
25
+ Project
34
26
}
35
27
36
28
func newProjectOrg (dbProject * models.Project ) ProjectOrg {
@@ -40,17 +32,19 @@ func newProjectOrg(dbProject *models.Project) ProjectOrg {
40
32
}
41
33
42
34
return ProjectOrg {
43
- Id : dbProject .ID ,
44
- Name : dbProject .Name ,
45
- Description : dbProject .Description ,
46
- Tags : tags ,
47
- RepoLink : dbProject .RepoLink ,
48
- CommChannel : dbProject .CommChannel ,
49
- ReadmeLink : dbProject .ReadmeLink ,
50
- Mentor : newMentor (& dbProject .Mentor ),
51
- SecondaryMentor : newMentor (& dbProject .SecondaryMentor ),
52
- ProjectStatus : dbProject .ProjectStatus ,
53
- StatusRemark : dbProject .StatusRemark ,
35
+ Project : Project {
36
+ Id : dbProject .ID ,
37
+ Name : dbProject .Name ,
38
+ Description : dbProject .Description ,
39
+ Tags : tags ,
40
+ RepoLink : dbProject .RepoLink ,
41
+ CommChannel : dbProject .CommChannel ,
42
+ ReadmeLink : dbProject .ReadmeLink ,
43
+ Mentor : newMentor (& dbProject .Mentor ),
44
+ SecondaryMentor : newMentor (& dbProject .SecondaryMentor ),
45
+ },
46
+ ProjectStatus : dbProject .ProjectStatus ,
47
+ StatusRemark : dbProject .StatusRemark ,
54
48
}
55
49
}
56
50
0 commit comments