forked from loafle/openapi-generator-original
* copy from go-server and add go-gin-server generator * change the templates for the gin * fix warnings of the golint tool * fix the path of script * add samples * delete unnecessary comments (#1048) * make the help message more appropriate (#1048) * fix the link address format (#1048) * minor improvement
57 lines
1.3 KiB
Go
57 lines
1.3 KiB
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
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// CreateUser - Create user
|
|
func CreateUser(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{})
|
|
}
|
|
|
|
// CreateUsersWithArrayInput - Creates list of users with given input array
|
|
func CreateUsersWithArrayInput(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{})
|
|
}
|
|
|
|
// CreateUsersWithListInput - Creates list of users with given input array
|
|
func CreateUsersWithListInput(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{})
|
|
}
|
|
|
|
// DeleteUser - Delete user
|
|
func DeleteUser(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{})
|
|
}
|
|
|
|
// GetUserByName - Get user by user name
|
|
func GetUserByName(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{})
|
|
}
|
|
|
|
// LoginUser - Logs user into the system
|
|
func LoginUser(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{})
|
|
}
|
|
|
|
// LogoutUser - Logs out current logged in user session
|
|
func LogoutUser(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{})
|
|
}
|
|
|
|
// UpdateUser - Updated user
|
|
func UpdateUser(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{})
|
|
}
|