mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-21 00:50:53 +00:00
* Feature(template) add response with status code generation * Generate Samples * update samples Co-authored-by: William Cheng <wing328hk@gmail.com>
17 lines
434 B
Go
17 lines
434 B
Go
/*
|
|
* OpenAPI Petstore
|
|
*
|
|
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
*
|
|
* API version: 1.0.0
|
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
*/
|
|
|
|
package petstoreserver
|
|
|
|
//Response return a ImplResponse struct filled
|
|
func Response(code int, body interface{}) ImplResponse {
|
|
return ImplResponse{Code: code, Body: body}
|
|
}
|
|
|