Skip to content

Commit 0fa1979

Browse files
authored
added missing fields in structs (#15)
* added missing fields in structs * Added DiplomaDetails struct and other required fields to Student struct * changed diploma field to use EducationDetails struct * fixed formatting Signed-off-by: Vyas Giri <[email protected]> --------- Signed-off-by: Vyas Giri <[email protected]>
1 parent 5e6688f commit 0fa1979

File tree

4 files changed

+34
-15
lines changed

4 files changed

+34
-15
lines changed

company/company.go

+19-15
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,26 @@ const (
1010
)
1111

1212
type Company struct {
13-
ID primitive.ObjectID `json:"_id" bson:"_id"`
14-
Name string `json:"name" bson:"name"`
15-
LogoURLs []string `json:"logo" bson:"logo"`
16-
Website string `json:"website" bson:"website"`
17-
Address string `json:"address" bson:"address"`
18-
Category string `json:"category" bson:"category"`
19-
Sector string `json:"sector" bson:"sector"`
20-
CompanyTurnover string `json:"companyTurnover" bson:"companyTurnover"`
13+
ID primitive.ObjectID `json:"_id" bson:"_id"`
14+
Name string `json:"name" bson:"name"`
15+
LogoURLs []string `json:"logo" bson:"logo"`
16+
Website string `json:"website" bson:"website"`
17+
Address string `json:"address" bson:"address"`
18+
Category string `json:"category" bson:"category"`
19+
Sector string `json:"sector" bson:"sector"`
20+
CompanyTurnover string `json:"companyTurnover" bson:"companyTurnover"`
21+
YearOfEstablishment int `json:"yearOfEstablishment" bson:"yearOfEstablishment"`
22+
NumberOfEmployees string `json:"numberOfEmployees" bson:"numberOfEmployees"`
2123
}
2224

2325
type CompanyCSV struct {
24-
ID string `json:"_id" bson:"_id" csv:"ID"`
25-
Name string `json:"name" bson:"name" csv:"Name"`
26-
Website string `json:"website" bson:"website" csv:"Website"`
27-
Address string `json:"address" bson:"address" csv:"Address"`
28-
Category string `json:"category" bson:"category" csv:"Category"`
29-
Sector string `json:"sector" bson:"sector" csv:"Sector"`
30-
CompanyTurnover string `json:"companyTurnover" bson:"companyTurnover" csv:"Turnover"`
26+
ID string `json:"_id" bson:"_id" csv:"ID"`
27+
Name string `json:"name" bson:"name" csv:"Name"`
28+
Website string `json:"website" bson:"website" csv:"Website"`
29+
Address string `json:"address" bson:"address" csv:"Address"`
30+
Category string `json:"category" bson:"category" csv:"Category"`
31+
Sector string `json:"sector" bson:"sector" csv:"Sector"`
32+
CompanyTurnover string `json:"companyTurnover" bson:"companyTurnover" csv:"Turnover"`
33+
YearOfEstablishment string `json:"yearOfEstablishment" bson:"yearOfEstablishment" csv:"Established"`
34+
NumberOfEmployees string `json:"numberOfEmployees" bson:"numberOfEmployees" csv:"Employees"`
3135
}

company/iaf_fields.go

+8
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ package company
33
type InternshipDescription struct {
44
Profile string `json:"profile" bson:"profile"`
55
Description string `json:"jd" bson:"jd"`
6+
MinimumHires int `json:"minimumHires" bson:"minimumHires"`
67
ExpectedHires int `json:"expectedHires" bson:"expectedHires"`
78
DurationInWeeks int `json:"internshipDuration" bson:"internshipDuration"`
89
Locations string `json:"locations" bson:"locations"`
10+
IsCGPACriteria bool `json:"isCGPACriteria" bson:"isCGPACriteria"`
911
EligibleCourses []string `json:"courses" bson:"courses"`
1012
BTech IAFCourseDetails `json:"btech" bson:"btech"`
1113
IDD IAFCourseDetails `json:"idd" bson:"idd"`
@@ -18,9 +20,11 @@ type InternshipDescription struct {
1820
type InternshipDescriptionCSV struct {
1921
Profile string `json:"profile" bson:"profile" csv:"Profile"`
2022
Description string `json:"jd" bson:"jd" csv:"Description"`
23+
MinimumHires string `json:"minimumHires" bson:"minimumHires" csv:"Minimum Hires"`
2124
ExpectedHires string `json:"expectedHires" bson:"expectedHires" csv:"Expected Hires"`
2225
DurationInWeeks string `json:"internshipDuration" bson:"internshipDuration" csv:"Duration In Weeks"`
2326
Locations string `json:"locations" bson:"locations" csv:"Locations"`
27+
IsCGPACriteria string `json:"isCGPACriteria" bson:"isCGPACriteria" csv:"Is there a CGPA Criteria"`
2428
EligibleCourses string `json:"courses" bson:"courses" csv:"Eligible Courses"`
2529
BTech IAFCourseDetailsCSV `json:"btech" bson:"btech" csv:"BTech ,inline"`
2630
IDD IAFCourseDetailsCSV `json:"idd" bson:"idd" csv:"IDD ,inline"`
@@ -45,11 +49,15 @@ type StipendDetails struct {
4549
Accomodation string `json:"accommodation" bson:"accommodation" csv:"Accomodation"`
4650
RelocationBonus string `json:"relocationBonus" bson:"relocationBonus" csv:"Relocation Bonus"`
4751
Incentives string `json:"incentives" bson:"incentives" csv:"Incentives"`
52+
ProvisionForPPO bool `json:"provisionForPPO" bson:"provisionForPPO" csv:"PPO Provision on performance"`
53+
TentativeCTC string `json:"tentativeCTC" bson:"tentativeCTC" csv:"Tentative CTC on PPO"`
4854
}
4955

5056
type StipendDetailsCSV struct {
5157
MonthlyStipend string `json:"stipendPerMonth" bson:"stipendPerMonth" csv:"Monthly Stipend"`
5258
Accomodation string `json:"accommodation" bson:"accommodation" csv:"Accomodation"`
5359
RelocationBonus string `json:"relocationBonus" bson:"relocationBonus" csv:"Relocation Bonus"`
5460
Incentives string `json:"incentives" bson:"incentives" csv:"Incentives"`
61+
ProvisionForPPO string `json:"provisionForPPO" bson:"provisionForPPO" csv:"PPO Provision on performance"`
62+
TentativeCTC string `json:"tentativeCTC" bson:"tentativeCTC" csv:"Tentative CTC on PPO"`
5563
}

company/jaf_fields.go

+6
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,32 @@ package company
33
type JobDescription struct {
44
Profile string `json:"profile" bson:"profile"`
55
Description string `json:"jd" bson:"jd"`
6+
MinimumHires int `json:"minimumHires" bson:"minimumHires"`
67
ExpectedHires int `json:"expectedHires" bson:"expectedHires"`
78
Locations string `json:"locations" bson:"locations"`
9+
IsCGPACriteria bool `json:"isCGPACriteria" bson:"isCGPACriteria"`
810
EligibleCourses []string `json:"courses" bson:"courses"`
911
BTech JAFCourseDetails `json:"btech" bson:"btech"`
1012
IDD JAFCourseDetails `json:"idd" bson:"idd"`
1113
MTech JAFCourseDetails `json:"mtech" bson:"mtech"`
1214
PHd JAFCourseDetails `json:"phd" bson:"phd"`
15+
IsPWDEligible bool `json:"isPWDEligible" bson:"isPWDEligible"`
1316
JDAttachmentLink []string `json:"jdAttachments" bson:"jdAttachments"`
1417
}
1518

1619
type JobDescriptionCSV struct {
1720
Profile string `json:"profile" bson:"profile" csv:"Profile"`
1821
Description string `json:"jd" bson:"jd" csv:"Description"`
22+
MinimumHires string `json:"minimumHires" bson:"minimumHires" csv:"Minimum Hires"`
1923
ExpectedHires string `json:"expectedHires" bson:"expectedHires" csv:"Expected Hires"`
2024
Locations string `json:"locations" bson:"locations" csv:"Locations"`
25+
IsCGPACriteria string `json:"isCGPACriteria" bson:"isCGPACriteria" csv:"Is there a CGPA Criteria"`
2126
EligibleCourses string `json:"courses" bson:"courses" csv:"Eligible Courses"`
2227
BTech JAFCourseDetailsCSV `json:"btech" bson:"btech" csv:"BTech ,inline"`
2328
IDD JAFCourseDetailsCSV `json:"idd" bson:"idd" csv:"IDD ,inline"`
2429
MTech JAFCourseDetailsCSV `json:"mtech" bson:"mtech" csv:"MTech ,inline"`
2530
PHd JAFCourseDetailsCSV `json:"phd" bson:"phd" csv:"PhD ,inline"`
31+
IsPWDEligible string `json:"isPWDEligible" bson:"isPWDEligible" csv:"Is PWD Eligible"`
2632
JDAttachmentLink string `json:"jdAttachments" bson:"JD Links"`
2733
}
2834

student/structs.go

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ type Academics struct {
5252
UnderGraduate *EducationDetails `json:"underGraduate" bson:"underGraduate"`
5353
Honours *string `json:"honours" bson:"honours"`
5454
PostGraduate *EducationDetails `json:"postGraduate" bson:"postGraduate"`
55+
Diploma *EducationDetails `json:"diploma" bson:"diploma"`
5556
ThesisEndDate *primitive.DateTime `json:"thesisEndDate" bson:"thesisEndDate"`
5657
EducationGap *int `json:"educationGap" bson:"educationGap"`
5758
SemesterSPI SemesterSPI `json:"semesterSPI" bson:"semesterSPI"`

0 commit comments

Comments
 (0)