add app setting letter out
This commit is contained in:
@@ -6,6 +6,8 @@ const (
|
||||
SettingIncomingLetterPrefix = "INCOMING_LETTER_PREFIX"
|
||||
SettingIncomingLetterSequence = "INCOMING_LETTER_SEQUENCE"
|
||||
SettingIncomingLetterRecipients = "INCOMING_LETTER_RECIPIENTS"
|
||||
SettingOutgoingLetterPrefix = "OUTGOING_LETTER_PREFIX"
|
||||
SettingOutgoingLetterSequence = "OUTGOING_LETTER_SEQUENCE"
|
||||
)
|
||||
|
||||
type ErrorResponse struct {
|
||||
|
||||
@@ -27,8 +27,6 @@ type CreateOutgoingLetterRequest struct {
|
||||
PriorityID *uuid.UUID `json:"priority_id,omitempty"`
|
||||
ReceiverInstitutionID *uuid.UUID `json:"receiver_institution_id,omitempty"`
|
||||
IssueDate time.Time `json:"issue_date" validate:"required"`
|
||||
ApprovalFlowID *uuid.UUID `json:"approval_flow_id,omitempty"`
|
||||
Recipients []CreateOutgoingLetterRecipient `json:"recipients,omitempty"`
|
||||
Attachments []CreateOutgoingLetterAttachment `json:"attachments,omitempty"`
|
||||
UserID uuid.UUID
|
||||
}
|
||||
|
||||
@@ -86,6 +86,19 @@ type DepartmentResponse struct {
|
||||
Path string `json:"path"`
|
||||
}
|
||||
|
||||
type ListDepartmentsRequest struct {
|
||||
Search string `json:"search,omitempty" form:"search"`
|
||||
Page int `json:"page,omitempty" form:"page"`
|
||||
Limit int `json:"limit,omitempty" form:"limit"`
|
||||
}
|
||||
|
||||
type ListDepartmentsResponse struct {
|
||||
Departments []DepartmentResponse `json:"departments"`
|
||||
Total int64 `json:"total"`
|
||||
Page int `json:"page"`
|
||||
Limit int `json:"limit"`
|
||||
}
|
||||
|
||||
type UserProfileResponse struct {
|
||||
UserID uuid.UUID `json:"user_id"`
|
||||
FullName string `json:"full_name"`
|
||||
|
||||
Reference in New Issue
Block a user