models

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToUUIDs

func BytesToUUIDs(bytes [][]byte) (uuids []uuid.UUID)

BytesToUUIDs

func UUIDsToBytes

func UUIDsToBytes(uuids []uuid.UUID) (bytes [][]byte)

UUIDsToBytes

Types

type Candidate

type Candidate struct {
	EmploymentType int           `json:"employment_type"`
	WorkingHours   int           `json:"working_hours"`
	WishSalaryFrom int           `json:"wish_salary_from"`
	WishSalaryTo   int           `json:"wish_salary_to"`
	Specialization string        `json:"specialization"`
	CandidateBio   *CandidateBio `json:"candidate_bio"`
}

type CandidateBio

type CandidateBio struct {
	Gender  int    `json:"gender"`
	Age     int    `json:"age"`
	Address string `json:"address"`
}

type JobDesc

type JobDesc struct {
	Location string `json:"location"`
	Website  string `json:"website"`
}

type JobExp

type JobExp struct {
	DateFrom int      `json:"date_from"`
	DateTo   int      `json:"date_to"`
	JobName  string   `json:"job_name"`
	JobDesc  *JobDesc `json:"job_desc"`
	JobPos   string   `json:"job_pos"`
	JobSpec  string   `json:"job_spec"`
}

type Resume

type Resume struct {
	Name       string      `json:"name"`
	ResumeUUID uuid.UUID   `json:"resume_uuid"`
	UserUUID   uuid.UUID   `json:"user_uuid"`
	ResumeDesc *ResumeDesc `json:"resume_desc"`
}

func ResumeFromProto added in v0.0.3

func ResumeFromProto(pb *proto.Resume) *Resume

func ResumesFromProto added in v0.0.3

func ResumesFromProto(pb *proto.Resumes) (rs []*Resume)

func (Resume) Proto

func (res Resume) Proto() *proto.Resume

Proto is

type ResumeDesc

type ResumeDesc struct {
	JobExps   []*JobExp  `json:"job_exps"`
	Candidate *Candidate `json:"candidate"`
	Skills    []string   `json:"skills"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL