chore: initial commit of HouseholdBudgetBook (backend, frontend, desktop)
This commit is contained in:
commit
4a5db3f1f9
167 files changed
+21732
No files matched your search
@@ -0,0 +1,82 @@
|
||||
package model
|
||||
|
||||
type Policy struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
InsuredPerson string `json:"insured_person"`
|
||||
Premium int64 `json:"premium"`
|
||||
CoverageAmount int64 `json:"coverage_amount"`
|
||||
StartDate string `json:"start_date"`
|
||||
EndDate string `json:"end_date"`
|
||||
PaymentFrequency string `json:"payment_frequency"`
|
||||
NextPaymentDate string `json:"next_payment_date"`
|
||||
PaymentTermEnd string `json:"payment_term_end"`
|
||||
Beneficiary string `json:"beneficiary"`
|
||||
Status string `json:"status"`
|
||||
Note string `json:"note"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
type CreatePolicyRequest struct {
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
InsuredPerson string `json:"insured_person"`
|
||||
Premium int64 `json:"premium"`
|
||||
CoverageAmount int64 `json:"coverage_amount"`
|
||||
StartDate string `json:"start_date"`
|
||||
EndDate string `json:"end_date"`
|
||||
PaymentFrequency string `json:"payment_frequency"`
|
||||
NextPaymentDate string `json:"next_payment_date"`
|
||||
PaymentTermEnd string `json:"payment_term_end"`
|
||||
Beneficiary string `json:"beneficiary"`
|
||||
Status string `json:"status"`
|
||||
Note string `json:"note"`
|
||||
}
|
||||
|
||||
type UpdatePolicyRequest struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
InsuredPerson *string `json:"insured_person,omitempty"`
|
||||
Premium *int64 `json:"premium,omitempty"`
|
||||
CoverageAmount *int64 `json:"coverage_amount,omitempty"`
|
||||
StartDate *string `json:"start_date,omitempty"`
|
||||
EndDate *string `json:"end_date,omitempty"`
|
||||
PaymentFrequency *string `json:"payment_frequency,omitempty"`
|
||||
NextPaymentDate *string `json:"next_payment_date,omitempty"`
|
||||
PaymentTermEnd *string `json:"payment_term_end,omitempty"`
|
||||
Beneficiary *string `json:"beneficiary,omitempty"`
|
||||
Status *string `json:"status,omitempty"`
|
||||
Note *string `json:"note,omitempty"`
|
||||
}
|
||||
|
||||
type PolicyAnnualSummary struct {
|
||||
Year int `json:"year"`
|
||||
TotalPremium int64 `json:"total_premium"`
|
||||
PolicyCount int `json:"policy_count"`
|
||||
}
|
||||
|
||||
type PolicyPayment struct {
|
||||
ID int64 `json:"id"`
|
||||
PolicyID int64 `json:"policy_id"`
|
||||
PolicyName string `json:"policy_name"`
|
||||
DueDate string `json:"due_date"`
|
||||
Amount int64 `json:"amount"`
|
||||
Status string `json:"status"`
|
||||
PaidDate string `json:"paid_date"`
|
||||
Note string `json:"note"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
type CreatePolicyPaymentRequest struct {
|
||||
DueDate string `json:"due_date"`
|
||||
Amount int64 `json:"amount"`
|
||||
Note string `json:"note"`
|
||||
}
|
||||
type UpdatePolicyPaymentRequest struct {
|
||||
Status string `json:"status"`
|
||||
PaidDate string `json:"paid_date"`
|
||||
Note *string `json:"note,omitempty"`
|
||||
}
|
||||
Reference in new issue
Block a user