add app setting letter out

This commit is contained in:
Aditya Siregar
2025-08-28 19:23:41 +07:00
parent 6da48504fa
commit 592fa97be7
18 changed files with 1077 additions and 538 deletions
+2
View File
@@ -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
}
+13
View File
@@ -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"`