pembaruan generete tool
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
package employee
|
||||
|
||||
// EmployeeGetResponse represents the response for GET employees
|
||||
type EmployeeGetResponse struct {
|
||||
Message string `json:"message"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
||||
// EmployeeGetByIDResponse represents the response for GET employee by ID
|
||||
type EmployeeGetByIDResponse struct {
|
||||
ID string `json:"id"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
// EmployeeCreateRequest represents the request for creating employee
|
||||
type EmployeeCreateRequest struct {
|
||||
Name string `json:"name" binding:"required"`
|
||||
// Add more fields as needed
|
||||
}
|
||||
|
||||
// EmployeeCreateResponse represents the response for creating employee
|
||||
type EmployeeCreateResponse struct {
|
||||
ID string `json:"id"`
|
||||
Message string `json:"message"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
// EmployeeUpdateRequest represents the request for updating employee
|
||||
type EmployeeUpdateRequest struct {
|
||||
Name string `json:"name" binding:"required"`
|
||||
// Add more fields as needed
|
||||
}
|
||||
|
||||
// EmployeeUpdateResponse represents the response for updating employee
|
||||
type EmployeeUpdateResponse struct {
|
||||
ID string `json:"id"`
|
||||
Message string `json:"message"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
// EmployeeDeleteResponse represents the response for deleting employee
|
||||
type EmployeeDeleteResponse struct {
|
||||
ID string `json:"id"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
// ErrorResponse represents an error response
|
||||
type ErrorResponse struct {
|
||||
Error string `json:"error"`
|
||||
}
|
||||
Reference in New Issue
Block a user