Advertisement
grapheo12

models.go

May 10th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 1.65 KB | None | 0 0
  1. package main
  2.  
  3. type Query struct {
  4.     AdvRollNo string `json:"advrollno"`
  5.     DoB       string `json:"dob"`
  6. }
  7.  
  8. type Marks struct {
  9.     Physics_1   float32 `json:"physics1" bson:"physics1"`
  10.     Physics_2   float32 `json:"physics2" bson:"physics2"`
  11.     Chemistry_1 float32 `json:"chemistry1" bson:"chemistry1"`
  12.     Chemistry_2 float32 `json:"chemistry2" bson:"chemistry2"`
  13.     Maths_1     float32 `json:"maths1" bson:"maths1"`
  14.     Maths_2     float32 `json:"maths2" bson:"maths2"`
  15. }
  16.  
  17. type CategoryRank struct {
  18.     GEN_EWS          int `json:",omitempty"`
  19.     OBC_NCL          int `json:",omitempty"`
  20.     SC               int `json:",omitempty"`
  21.     ST               int `json:",omitempty"`
  22.     CRL_PWD          int `json:",omitempty"`
  23.     GEN_EWS_PWD      int `json:",omitempty"`
  24.     OBC_NCL_PWD      int `json:",omitempty"`
  25.     SC_PWD           int `json:",omitempty"`
  26.     ST_PWD           int `json:",omitempty"`
  27.     PREP_CRL_PWD     int `json:",omitempty"`
  28.     PREP_GEN_EWS_PWD int `json:",omitempty"`
  29.     PREP_OBC_NCL_PWD int `json:",omitempty"`
  30.     PREP_SC          int `json:",omitempty"`
  31.     PREP_SC_PWD      int `json:",omitempty"`
  32.     PREP_ST          int `json:",omitempty"`
  33.     PREP_ST_PWD      int `json:",omitempty"`
  34. }
  35.  
  36. type Rank struct {
  37.     CRL   int          `json:"CRL" bson:"CRL"`
  38.     Other CategoryRank `json:"other" bson:"other"`
  39. }
  40.  
  41. type Credentials struct {
  42.     Name      string `json:"name" bson:"name"`
  43.     DoB       string `json:"dob" bson:"dob"`
  44.     AdvRollNo string `json:"advrollno" bson:"advrollno"`
  45. }
  46.  
  47. type Response struct {
  48.     Marks       Marks       `json:"marks" bson:"marks"`
  49.     Rank        Rank        `json:"rank" bson:"rank"`
  50.     Credentials Credentials `json:"credentials" bson:"credentials"`
  51. }
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement