ocdp v1
This commit is contained in:
15
backend/internal/adapter/input/http/dto/error_dto.go
Normal file
15
backend/internal/adapter/input/http/dto/error_dto.go
Normal file
@ -0,0 +1,15 @@
|
||||
package dto
|
||||
|
||||
// ErrorResponse 错误响应
|
||||
type ErrorResponse struct {
|
||||
Error string `json:"error"`
|
||||
Message string `json:"message,omitempty"`
|
||||
Code int `json:"code,omitempty"`
|
||||
}
|
||||
|
||||
// SuccessResponse 成功响应
|
||||
type SuccessResponse struct {
|
||||
Message string `json:"message"`
|
||||
Data interface{} `json:"data,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user