1
This commit is contained in:
16
internal/types/agent.go
Normal file
16
internal/types/agent.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package types
|
||||
|
||||
type SubmissionCredentials struct {
|
||||
AgentId string `json:"agent_id"`
|
||||
VacancyId string `json:"vacancy_id"`
|
||||
Name string `json:"name"`
|
||||
PhoneNumber string `json:"phone_number"`
|
||||
Email string `json:"email"`
|
||||
Birthday string `json:"birthday"`
|
||||
Info string `json:"info"`
|
||||
CV string `json:"cv"`
|
||||
}
|
||||
|
||||
type PersonalLinkResponse struct {
|
||||
Link string `json:"link"`
|
||||
}
|
19
internal/types/default.go
Normal file
19
internal/types/default.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package types
|
||||
|
||||
import "time"
|
||||
|
||||
type GetDocumentsResponse struct {
|
||||
Link string `json:"link"`
|
||||
ExpiresIn time.Time `json:"expires_in"`
|
||||
}
|
||||
|
||||
type GetLogoResponse struct {
|
||||
Link string `json:"link"`
|
||||
ExpiresIn time.Time `json:"expires_in"`
|
||||
}
|
||||
|
||||
type CVURLResponse struct {
|
||||
URL string `json:"url"`
|
||||
SubmissionID string `json:"submission_id"`
|
||||
ExpiresAt time.Time `json:"expires_at"`
|
||||
}
|
39
internal/types/distributor.go
Normal file
39
internal/types/distributor.go
Normal file
@@ -0,0 +1,39 @@
|
||||
package types
|
||||
|
||||
type Status int32
|
||||
|
||||
const (
|
||||
StatusUnspecified Status = 0
|
||||
StatusCreated Status = 1
|
||||
StatusInProgress Status = 2
|
||||
StatusOnInterview Status = 3
|
||||
StatusDeclined Status = 4
|
||||
StatusSuspended Status = 5
|
||||
StatusAccepted Status = 6
|
||||
)
|
||||
|
||||
var StatusToRuString = map[Status]string{
|
||||
StatusUnspecified: "Не указан",
|
||||
StatusCreated: "Создан",
|
||||
StatusInProgress: "В процессе",
|
||||
StatusOnInterview: "На собеседовании",
|
||||
StatusDeclined: "Отклонён",
|
||||
StatusSuspended: "Приостановлен",
|
||||
StatusAccepted: "Принят",
|
||||
}
|
||||
|
||||
func (s Status) String() string {
|
||||
if name, ok := StatusToRuString[s]; ok {
|
||||
return name
|
||||
}
|
||||
|
||||
return "Неизвестный статус"
|
||||
}
|
||||
|
||||
type SubmissionStatus struct {
|
||||
Status Status `json:"status"` // извините за тавтологию
|
||||
}
|
||||
|
||||
type VacancyVisibility struct {
|
||||
Visible bool `json:"is_visible"`
|
||||
}
|
13
internal/types/employee.go
Normal file
13
internal/types/employee.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package types
|
||||
|
||||
import "git-molva.ru/Molva/molva-backend/services/api_gateway/internal/constants"
|
||||
|
||||
type Employee struct {
|
||||
UID string `json:"uid"`
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"`
|
||||
MiddleName string `json:"middle_name,omitempty"`
|
||||
Email string `json:"email"`
|
||||
//Phone string `json:"phone"` // не уверен, что это нужно
|
||||
Permissions map[constants.PermissionType]constants.PermissionValue `json:"permissions"`
|
||||
}
|
6
internal/types/validation.go
Normal file
6
internal/types/validation.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package types
|
||||
|
||||
type ValidationsResponse struct {
|
||||
Status string `json:"status"`
|
||||
Description string `json:"description"`
|
||||
}
|
Reference in New Issue
Block a user