Merge pull request #2578 from guohuang/issue2535

remove unneeded function line
This commit is contained in:
wing328 2016-04-13 11:23:59 +08:00
commit 63977a2093
4 changed files with 2 additions and 23 deletions

View File

@ -38,7 +38,6 @@ func New{{classname}}WithBasePath(basePath string) *{{classname}}{
{{#allParams}} * @param {{paramName}} {{description}}
{{/allParams}} * @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}
*/
//func (a {{classname}}) {{nickname}} ({{#allParams}}{{paramName}} {{{dataType}}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) ({{#returnType}}{{{returnType}}}, {{/returnType}}error) {
func (a {{classname}}) {{nickname}} ({{#allParams}}{{paramName}} {{{dataType}}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) ({{#returnType}}{{{returnType}}}, {{/returnType}}error) {
_sling := sling.New().{{httpMethod}}(a.Configuration.BasePath)

View File

@ -35,7 +35,6 @@ func NewPetApiWithBasePath(basePath string) *PetApi{
* @param body Pet object that needs to be added to the store
* @return void
*/
//func (a PetApi) AddPet (body Pet) (error) {
func (a PetApi) AddPet (body Pet) (error) {
_sling := sling.New().Post(a.Configuration.BasePath)
@ -108,7 +107,6 @@ func (a PetApi) AddPet (body Pet) (error) {
* @param apiKey
* @return void
*/
//func (a PetApi) DeletePet (petId int64, apiKey string) (error) {
func (a PetApi) DeletePet (petId int64, apiKey string) (error) {
_sling := sling.New().Delete(a.Configuration.BasePath)
@ -181,7 +179,6 @@ func (a PetApi) DeletePet (petId int64, apiKey string) (error) {
* @param status Status values that need to be considered for filter
* @return []Pet
*/
//func (a PetApi) FindPetsByStatus (status []string) ([]Pet, error) {
func (a PetApi) FindPetsByStatus (status []string) ([]Pet, error) {
_sling := sling.New().Get(a.Configuration.BasePath)
@ -255,7 +252,6 @@ func (a PetApi) FindPetsByStatus (status []string) ([]Pet, error) {
* @param tags Tags to filter by
* @return []Pet
*/
//func (a PetApi) FindPetsByTags (tags []string) ([]Pet, error) {
func (a PetApi) FindPetsByTags (tags []string) ([]Pet, error) {
_sling := sling.New().Get(a.Configuration.BasePath)
@ -329,7 +325,6 @@ func (a PetApi) FindPetsByTags (tags []string) ([]Pet, error) {
* @param petId ID of pet to return
* @return Pet
*/
//func (a PetApi) GetPetById (petId int64) (Pet, error) {
func (a PetApi) GetPetById (petId int64) (Pet, error) {
_sling := sling.New().Get(a.Configuration.BasePath)
@ -337,7 +332,7 @@ func (a PetApi) GetPetById (petId int64) (Pet, error) {
// authentication (api_key) required
// set key with prefix in header
_sling.Set("api_key", a.Configuration.GetApiKeyWithPrefix("api_key")
_sling.Set("api_key", a.Configuration.GetApiKeyWithPrefix("api_key"))
// create path and map variables
@ -399,7 +394,6 @@ func (a PetApi) GetPetById (petId int64) (Pet, error) {
* @param body Pet object that needs to be added to the store
* @return void
*/
//func (a PetApi) UpdatePet (body Pet) (error) {
func (a PetApi) UpdatePet (body Pet) (error) {
_sling := sling.New().Put(a.Configuration.BasePath)
@ -473,7 +467,6 @@ func (a PetApi) UpdatePet (body Pet) (error) {
* @param status Updated status of the pet
* @return void
*/
//func (a PetApi) UpdatePetWithForm (petId int64, name string, status string) (error) {
func (a PetApi) UpdatePetWithForm (petId int64, name string, status string) (error) {
_sling := sling.New().Post(a.Configuration.BasePath)
@ -551,7 +544,6 @@ func (a PetApi) UpdatePetWithForm (petId int64, name string, status string) (err
* @param file file to upload
* @return ApiResponse
*/
//func (a PetApi) UploadFile (petId int64, additionalMetadata string, file *os.File) (ApiResponse, error) {
func (a PetApi) UploadFile (petId int64, additionalMetadata string, file *os.File) (ApiResponse, error) {
_sling := sling.New().Post(a.Configuration.BasePath)

View File

@ -34,7 +34,6 @@ func NewStoreApiWithBasePath(basePath string) *StoreApi{
* @param orderId ID of the order that needs to be deleted
* @return void
*/
//func (a StoreApi) DeleteOrder (orderId string) (error) {
func (a StoreApi) DeleteOrder (orderId string) (error) {
_sling := sling.New().Delete(a.Configuration.BasePath)
@ -98,7 +97,6 @@ func (a StoreApi) DeleteOrder (orderId string) (error) {
* Returns a map of status codes to quantities
* @return map[string]int32
*/
//func (a StoreApi) GetInventory () (map[string]int32, error) {
func (a StoreApi) GetInventory () (map[string]int32, error) {
_sling := sling.New().Get(a.Configuration.BasePath)
@ -106,7 +104,7 @@ func (a StoreApi) GetInventory () (map[string]int32, error) {
// authentication (api_key) required
// set key with prefix in header
_sling.Set("api_key", a.Configuration.GetApiKeyWithPrefix("api_key")
_sling.Set("api_key", a.Configuration.GetApiKeyWithPrefix("api_key"))
// create path and map variables
@ -167,7 +165,6 @@ func (a StoreApi) GetInventory () (map[string]int32, error) {
* @param orderId ID of pet that needs to be fetched
* @return Order
*/
//func (a StoreApi) GetOrderById (orderId int64) (Order, error) {
func (a StoreApi) GetOrderById (orderId int64) (Order, error) {
_sling := sling.New().Get(a.Configuration.BasePath)
@ -232,7 +229,6 @@ func (a StoreApi) GetOrderById (orderId int64) (Order, error) {
* @param body order placed for purchasing the pet
* @return Order
*/
//func (a StoreApi) PlaceOrder (body Order) (Order, error) {
func (a StoreApi) PlaceOrder (body Order) (Order, error) {
_sling := sling.New().Post(a.Configuration.BasePath)

View File

@ -34,7 +34,6 @@ func NewUserApiWithBasePath(basePath string) *UserApi{
* @param body Created user object
* @return void
*/
//func (a UserApi) CreateUser (body User) (error) {
func (a UserApi) CreateUser (body User) (error) {
_sling := sling.New().Post(a.Configuration.BasePath)
@ -100,7 +99,6 @@ func (a UserApi) CreateUser (body User) (error) {
* @param body List of user object
* @return void
*/
//func (a UserApi) CreateUsersWithArrayInput (body []User) (error) {
func (a UserApi) CreateUsersWithArrayInput (body []User) (error) {
_sling := sling.New().Post(a.Configuration.BasePath)
@ -166,7 +164,6 @@ func (a UserApi) CreateUsersWithArrayInput (body []User) (error) {
* @param body List of user object
* @return void
*/
//func (a UserApi) CreateUsersWithListInput (body []User) (error) {
func (a UserApi) CreateUsersWithListInput (body []User) (error) {
_sling := sling.New().Post(a.Configuration.BasePath)
@ -232,7 +229,6 @@ func (a UserApi) CreateUsersWithListInput (body []User) (error) {
* @param username The name that needs to be deleted
* @return void
*/
//func (a UserApi) DeleteUser (username string) (error) {
func (a UserApi) DeleteUser (username string) (error) {
_sling := sling.New().Delete(a.Configuration.BasePath)
@ -297,7 +293,6 @@ func (a UserApi) DeleteUser (username string) (error) {
* @param username The name that needs to be fetched. Use user1 for testing.
* @return User
*/
//func (a UserApi) GetUserByName (username string) (User, error) {
func (a UserApi) GetUserByName (username string) (User, error) {
_sling := sling.New().Get(a.Configuration.BasePath)
@ -363,7 +358,6 @@ func (a UserApi) GetUserByName (username string) (User, error) {
* @param password The password for login in clear text
* @return string
*/
//func (a UserApi) LoginUser (username string, password string) (string, error) {
func (a UserApi) LoginUser (username string, password string) (string, error) {
_sling := sling.New().Get(a.Configuration.BasePath)
@ -431,7 +425,6 @@ password string `url:"password,omitempty"`
*
* @return void
*/
//func (a UserApi) LogoutUser () (error) {
func (a UserApi) LogoutUser () (error) {
_sling := sling.New().Get(a.Configuration.BasePath)
@ -496,7 +489,6 @@ func (a UserApi) LogoutUser () (error) {
* @param body Updated user object
* @return void
*/
//func (a UserApi) UpdateUser (username string, body User) (error) {
func (a UserApi) UpdateUser (username string, body User) (error) {
_sling := sling.New().Put(a.Configuration.BasePath)