Documentation ¶
Index ¶
- func DeletePerson(id int64) error
- func DeletePersonAchievement(personAchievementId int64) (err error)
- func DeletePersonAchievements(personId int64) (err error)
- func DeletePersonExpertise(personExpertiseId int64) (err error)
- func DeletePersonExpertises(personId int64) (err error)
- func DeletePersonPosition(personPositionId int64) (err error)
- func DeletePersonPositions(personId int64) (err error)
- func DeletePersonSkill(personSkillId int64) (err error)
- func DeletePersonSkills(personId int64) (err error)
- func GetPersonImage(personId int64) ([]byte, error)
- func UploadPersonImage(personId int64, file multipart.File) error
- type ClientUploader
- type Date
- type Dictionary
- func CreateDictionary(dictType string, name string, description string) (dict Dictionary, err error)
- func DeleteDictionary(dictType string, id int64) (dict Dictionary, err error)
- func GetDictionaries(dictType string) (dicts []Dictionary, err error)
- func UpdateDictionary(dictType string, id int64, name string, description string) (person Dictionary, err error)
- type Level
- type Person
- type PersonAchievement
- func AddPersonAchievement(personId int64, achievementId int64, since Date, description string) (achievement PersonAchievement, err error)
- func GetPersonAchievements(personId int64) (achievements []PersonAchievement, err error)
- func UpdatePersonAchievement(personAchievementId int64, since Date, description string) (achievement PersonAchievement, err error)
- type PersonExpertise
- func AddPersonExpertise(personId int64, expertiseId int64, since Date, level Level) (expertise PersonExpertise, err error)
- func GetPersonExpertises(personId int64) (expertises []PersonExpertise, err error)
- func UpdatePersonExpertise(personExpertiseId int64, since Date, level Level) (expertise PersonExpertise, err error)
- type PersonPosition
- func AddPersonPosition(personId int64, positionId int64, teamId int64, since Date, description string) (position PersonPosition, err error)
- func GetPersonPositions(personId int64) (positions []PersonPosition, err error)
- func UpdatePersonPosition(personPositionId int64, since Date, till Date, description string) (position PersonPosition, err error)
- type PersonSkill
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletePerson ¶
func DeletePersonAchievement ¶
func DeletePersonExpertise ¶
func DeletePersonExpertises ¶
func DeletePersonPosition ¶
func DeletePersonPositions ¶
func DeletePersonSkill ¶
func DeletePersonSkills ¶
func GetPersonImage ¶
Types ¶
type ClientUploader ¶
type ClientUploader struct {
// contains filtered or unexported fields
}
type Dictionary ¶
type Dictionary struct { Id int64 `json:"dictId" db:"dict_id"` Name string `json:"name"` Description string `json:"description"` }
func CreateDictionary ¶
func CreateDictionary(dictType string, name string, description string) (dict Dictionary, err error)
func DeleteDictionary ¶
func DeleteDictionary(dictType string, id int64) (dict Dictionary, err error)
func GetDictionaries ¶
func GetDictionaries(dictType string) (dicts []Dictionary, err error)
func UpdateDictionary ¶
type Person ¶
type Person struct { Id int64 `json:"id"` Name string `json:"name"` Description string `json:"description"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
func GetPersons ¶
type PersonAchievement ¶
type PersonAchievement struct { Id int64 `json:"id"` PersionId int64 `json:"personId" db:"person_id"` Since Date `json:"since"` Details string `json:"details" db:"description"` Dictionary }
func AddPersonAchievement ¶
func GetPersonAchievements ¶
func GetPersonAchievements(personId int64) (achievements []PersonAchievement, err error)
func UpdatePersonAchievement ¶
func UpdatePersonAchievement(personAchievementId int64, since Date, description string) (achievement PersonAchievement, err error)
type PersonExpertise ¶
type PersonExpertise struct { Id int64 `json:"id"` PersionId int64 `json:"personId" db:"person_id"` Since Date `json:"since"` Level Level `json:"level"` Dictionary }
func AddPersonExpertise ¶
func GetPersonExpertises ¶
func GetPersonExpertises(personId int64) (expertises []PersonExpertise, err error)
func UpdatePersonExpertise ¶
func UpdatePersonExpertise(personExpertiseId int64, since Date, level Level) (expertise PersonExpertise, err error)
type PersonPosition ¶
type PersonPosition struct { Id int64 `json:"id"` PersionId int64 `json:"personId" db:"person_id"` TeamId int64 `json:"teamId" db:"team_id"` Since Date `json:"since"` Till Date `json:"till"` Details string `json:"description" db:"description"` Dictionary }
func AddPersonPosition ¶
func GetPersonPositions ¶
func GetPersonPositions(personId int64) (positions []PersonPosition, err error)
func UpdatePersonPosition ¶
type PersonSkill ¶
type PersonSkill struct { Id int64 `json:"id"` PersionId int64 `json:"personId" db:"person_id"` Since Date `json:"since"` Level Level `json:"level"` Dictionary }
func AddPersonSkill ¶
func GetPersonSkills ¶
func GetPersonSkills(personId int64) (skills []PersonSkill, err error)
func UpdatePersonSkill ¶
func UpdatePersonSkill(personSkillId int64, since Date, level Level) (skill PersonSkill, err error)
Click to show internal directories.
Click to hide internal directories.