21 lines
514 B
Go
21 lines
514 B
Go
|
|
package dto
|
||
|
|
|
||
|
|
type ProcessResult struct {
|
||
|
|
Status string `json:"status"`
|
||
|
|
RowsInserted int64 `json:"rows_inserted,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type SuccessResponse struct {
|
||
|
|
Success bool `json:"success"`
|
||
|
|
Message string `json:"message"`
|
||
|
|
Data any `json:"data,omitempty"`
|
||
|
|
RequestID string `json:"request_id"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type ErrorResponse struct {
|
||
|
|
Success bool `json:"success"`
|
||
|
|
Message string `json:"message"`
|
||
|
|
ErrorCode string `json:"error_code,omitempty"`
|
||
|
|
RequestID string `json:"request_id,omitempty"`
|
||
|
|
}
|