Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DbMap *gorp.DbMap
View Source
var Transaction *gorp.Transaction
Functions ¶
Types ¶
type Organization ¶
type Organization struct { ID int `db:"id" json:"id"` Name string `db:"name" json:"name"` Position string `db:"position" json:"position"` OrganizationName string `db:"organization_name" json:"organization_name"` OrganizationEmail string `db:"organization_email" json:"organization_email"` Address string `db:"address" json:"address"` City string `db:"city" json:"city"` Region string `db:"region" json:"region"` Country string `db:"country" json:"country"` Zipcode *string `db:"zipcode" json:"zipcode,omitempty"` Website *string `db:"website" json:"website,omitempty"` Logo *string `db:"logo" json:"logo,omitempty"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` UserID int `db:"user_id" json:"-"` }
func (*Organization) Map ¶
func (o *Organization) Map() map[string]interface{}
func (*Organization) Parse ¶
func (o *Organization) Parse(data map[string]interface{}) error
type Scholarship ¶
type Scholarship struct { ID int `db:"id" json:"id"` Name string `db:"name" json:"name"` Country string `db:"country" json:"country"` Flag string `db:"flag" json:"flag"` State int `db:"state" json:"state"` StartDate string `db:"start_date" json:"start_date"` EndDate string `db:"end_date" json:"end_date"` Description string `db:"description" json:"description"` Requirement string `db:"requirement" json:"requirement"` OrganizationID int `db:"organization_id" json:"organization_id"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }
func (*Scholarship) Validate ¶
func (s *Scholarship) Validate() error
type Student ¶
type Student struct { ID int `db:"id" json:"id"` Name string `db:"name" json:"name"` Birthdate time.Time `db:"birthdate" json:"birthdate"` Address string `db:"address" json:"address"` City string `db:"city" json:"city"` Region string `db:"region" json:"region"` Country string `db:"country" json:"country"` Zipcode string `db:"zipcode" json:"zipcode,omitempty"` Education string `db:"education" json:"education"` SchoolName string `db:"school_name" json:"school_name"` SchoolAddress string `db:"school_address" json:"school_address"` SchoolCity string `db:"school_city" json:"school_city"` SchoolRegion string `db:"school_region" json:"school_region"` SchoolZipcode *string `db:"school_zipcode" json:"school_zipcode,omitempty"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` UserID int `db:"user_id" json:"-"` }
type StudentBoard ¶
type StudentBoard struct { ID int `db:"id" json:"id"` Name string `db:"name" json:"name"` Category int `db:"category" json:"category"` Description string `db:"description" json:"description"` State int `db:"state" json:"state"` UserID int `db:"user_id" json:"user_id"` ScholarshipID *int `db:"scholarship_id" json:"scholarship_id"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }
func (*StudentBoard) Validate ¶
func (s *StudentBoard) Validate() error
type User ¶
type User struct { ID int `db:"id" json:"id"` EmailAddress string `db:"email_address" json:"email_address"` Password string `db:"password" json:"password,omitempty"` PasswordConfirm string `db:"-" json:"password_confirm,omitempty"` Role string `db:"role" json:"role"` UserData map[string]interface{} `db:"-" json:"user_data"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }
User hold record of all registered user
func (*User) ValidatePassword ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.