Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Individual ¶
type Individual struct { ID primitive.ObjectID `json:"-" bson:"_id,omitempty"` UserUUID string `json:"-" bson:"user_uuid,omitempty"` UserName string `json:"username" bson:"username,omitempty"` Name string `json:"name" bson:"name,omitempty" example:"John Doe"` JobTitle string `json:"job_title" bson:"job_title,omitempty" example:"Software Engineer"` HeadImgPath string `json:"head_img_path" bson:"head_img_path,omitempty" example:"/images/john_doe.jpg"` Email string `json:"email" bson:"email,omitempty" example:"john@example.com"` SocialMedia SocialMedia `json:"social_media" bson:"social_media"` Skills []string `json:"skills" bson:"skills,omitempty" example:"Golang,JavaScript,Python"` ResumeLink string `json:"resume_link" bson:"resume_link,omitempty" example:"https://example.com/john_doe_resume.pdf"` Projects []Project `json:"projects" bson:"projects"` CreatedAt time.Time `json:"-" bson:"created_at,omitempty"` UpdatedAt time.Time `json:"-" bson:"updated_at"` }
type Project ¶
type Project struct { ID string `json:"-" bson:"id"` UserID primitive.ObjectID `json:"-" bson:"user_id,omitempty"` Name string `json:"name" bson:"name,omitempty" example:"Project X"` Skills []string `json:"skills" bson:"skills,omitempty" example:"['Golang', 'Docker', 'Kubernetes']"` Introduce string `json:"introduce" bson:"introduce,omitempty" example:"A project for implementing microservices architecture."` DemoLink string `json:"demo_link" bson:"demo_link,omitempty" example:"https://example.com/project_x_demo"` GithubRepLink string `json:"github_rep_link" bson:"github_rep_link,omitempty" example:"https://github.com/johndoe/project_x"` }
type SocialMedia ¶
type SocialMedia struct { UserID primitive.ObjectID `json:"-" bson:"user_id,omitempty"` Github string `json:"github" bson:"github,omitempty" example:"johndoe"` Facebook string `json:"facebook" bson:"facebook,omitempty" example:"johndoe"` Linkedin string `json:"linkedin" bson:"linkedin,omitempty" example:"johndoe"` }
type User ¶
type User struct { global.EP_MODEL UUID uuid.UUID `json:"uuid" gorm:"index;comment:使用者UUID"` // 會員UUID Username string `json:"userName" gorm:"index;comment:使用者名稱"` // 會員名稱 Password string `json:"-" gorm:"comment:使用者密碼"` // 會員登入密碼 NickName string `json:"nickName" gorm:"comment:暱稱"` HeaderImg string `json:"headerImg" gorm:"default:https://img.jpg;comment:使用者頭像"` // 會員頭像連結 Phone string `json:"phone" gorm:"comment:手機號碼"` // 手機號碼 Email string `json:"email" gorm:"comment:電子郵箱"` // 電子信箱 Disable int `json:"disable" gorm:"default:0;comment:是否註銷:0=註銷"` //帳號是否註銷 LastLoginAt time.Time `json:"last_login_at" gorm:"default:null;comment:上次登入時間"` }
func (*User) IsUserExist ¶
func (*User) IsUserNameExist ¶
Click to show internal directories.
Click to hide internal directories.