feat: add invoice and alternative_componen management functionality
This commit is contained in:
14
internal/models/responses/alternative_component_response.go
Normal file
14
internal/models/responses/alternative_component_response.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package responses
|
||||
|
||||
type CreateAlternativeComponentResponse struct {
|
||||
ID int64 `json:"id"`
|
||||
}
|
||||
|
||||
type UpdateAlternativeComponentResponse struct {
|
||||
ID int64 `json:"id"`
|
||||
InvoiceConfigItemID int64 `json:"invoiceConfigItemId"`
|
||||
AlternativeComponentID int64 `json:"alternativeComponentId"`
|
||||
ConversionRatio string `json:"conversionRatio"`
|
||||
Priority int32 `json:"priority"`
|
||||
Note string `json:"note"`
|
||||
}
|
||||
16
internal/models/responses/invoice_response.go
Normal file
16
internal/models/responses/invoice_response.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package responses
|
||||
|
||||
type CreateInvoiceResponse struct {
|
||||
ID int64 `json:"id"`
|
||||
InvoiceCode string `json:"invoiceCode"`
|
||||
}
|
||||
|
||||
type UpdateInvoiceResponse struct {
|
||||
ID int64 `json:"id"`
|
||||
InvoiceCode string `json:"invoiceCode"`
|
||||
Type string `json:"type"`
|
||||
Status string `json:"status"`
|
||||
InvoiceConfigID int64 `json:"invoiceConfigId"`
|
||||
TotalItems int32 `json:"totalItems"`
|
||||
Note string `json:"note"`
|
||||
}
|
||||
Reference in New Issue
Block a user