mirror of https://github.com/zhufuyi/sponge
fix: swagger response docs
This commit is contained in:
parent
ab553648c2
commit
a028e2bfcc
|
@ -64,12 +64,16 @@ type CreateUserExampleReply struct {
|
||||||
|
|
||||||
// DeleteUserExampleByIDReply only for api docs
|
// DeleteUserExampleByIDReply only for api docs
|
||||||
type DeleteUserExampleByIDReply struct {
|
type DeleteUserExampleByIDReply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateUserExampleByIDReply only for api docs
|
// UpdateUserExampleByIDReply only for api docs
|
||||||
type UpdateUserExampleByIDReply struct {
|
type UpdateUserExampleByIDReply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUserExampleByIDReply only for api docs
|
// GetUserExampleByIDReply only for api docs
|
||||||
|
|
|
@ -64,7 +64,9 @@ type CreateUserExampleReply struct {
|
||||||
|
|
||||||
// UpdateUserExampleByIDReply only for api docs
|
// UpdateUserExampleByIDReply only for api docs
|
||||||
type UpdateUserExampleByIDReply struct {
|
type UpdateUserExampleByIDReply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUserExampleByIDReply only for api docs
|
// GetUserExampleByIDReply only for api docs
|
||||||
|
@ -78,12 +80,16 @@ type GetUserExampleByIDReply struct {
|
||||||
|
|
||||||
// DeleteUserExampleByIDReply only for api docs
|
// DeleteUserExampleByIDReply only for api docs
|
||||||
type DeleteUserExampleByIDReply struct {
|
type DeleteUserExampleByIDReply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteUserExamplesByIDsReply only for api docs
|
// DeleteUserExamplesByIDsReply only for api docs
|
||||||
type DeleteUserExamplesByIDsReply struct {
|
type DeleteUserExamplesByIDsReply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListUserExamplesRequest request params
|
// ListUserExamplesRequest request params
|
||||||
|
|
|
@ -64,7 +64,9 @@ type Create{{.TableNameCamel}}Reply struct {
|
||||||
|
|
||||||
// Update{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
// Update{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
||||||
type Update{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply struct {
|
type Update{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
// Get{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
||||||
|
@ -78,12 +80,16 @@ type Get{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply struct {
|
||||||
|
|
||||||
// Delete{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
// Delete{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
||||||
type Delete{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply struct {
|
type Delete{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete{{.TableNamePluralCamel}}By{{.ColumnNamePluralCamel}}Reply only for api docs
|
// Delete{{.TableNamePluralCamel}}By{{.ColumnNamePluralCamel}}Reply only for api docs
|
||||||
type Delete{{.TableNamePluralCamel}}By{{.ColumnNamePluralCamel}}Reply struct {
|
type Delete{{.TableNamePluralCamel}}By{{.ColumnNamePluralCamel}}Reply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// List{{.TableNamePluralCamel}}Request request params
|
// List{{.TableNamePluralCamel}}Request request params
|
||||||
|
|
|
@ -67,7 +67,9 @@ type CreateUserExampleReply struct {
|
||||||
|
|
||||||
// UpdateUserExampleByIDReply only for api docs
|
// UpdateUserExampleByIDReply only for api docs
|
||||||
type UpdateUserExampleByIDReply struct {
|
type UpdateUserExampleByIDReply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUserExampleByIDReply only for api docs
|
// GetUserExampleByIDReply only for api docs
|
||||||
|
@ -81,7 +83,9 @@ type GetUserExampleByIDReply struct {
|
||||||
|
|
||||||
// DeleteUserExampleByIDReply only for api docs
|
// DeleteUserExampleByIDReply only for api docs
|
||||||
type DeleteUserExampleByIDReply struct {
|
type DeleteUserExampleByIDReply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListUserExamplesRequest request params
|
// ListUserExamplesRequest request params
|
||||||
|
|
|
@ -67,12 +67,16 @@ type CreateUserExampleReply struct {
|
||||||
|
|
||||||
// DeleteUserExampleByIDReply only for api docs
|
// DeleteUserExampleByIDReply only for api docs
|
||||||
type DeleteUserExampleByIDReply struct {
|
type DeleteUserExampleByIDReply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateUserExampleByIDReply only for api docs
|
// UpdateUserExampleByIDReply only for api docs
|
||||||
type UpdateUserExampleByIDReply struct {
|
type UpdateUserExampleByIDReply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUserExampleByIDReply only for api docs
|
// GetUserExampleByIDReply only for api docs
|
||||||
|
@ -105,7 +109,9 @@ type DeleteUserExamplesByIDsRequest struct {
|
||||||
|
|
||||||
// DeleteUserExamplesByIDsReply only for api docs
|
// DeleteUserExamplesByIDsReply only for api docs
|
||||||
type DeleteUserExamplesByIDsReply struct {
|
type DeleteUserExamplesByIDsReply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUserExampleByConditionRequest request params
|
// GetUserExampleByConditionRequest request params
|
||||||
|
|
|
@ -64,12 +64,16 @@ type Create{{.TableNameCamel}}Reply struct {
|
||||||
|
|
||||||
// Delete{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
// Delete{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
||||||
type Delete{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply struct {
|
type Delete{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
// Update{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
||||||
type Update{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply struct {
|
type Update{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply struct {
|
||||||
Result
|
Code int `json:"code"` // return code
|
||||||
|
Msg string `json:"msg"` // return information description
|
||||||
|
Data struct{} `json:"data"` // return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
// Get{{.TableNameCamel}}By{{.ColumnNameCamel}}Reply only for api docs
|
||||||
|
|
Loading…
Reference in New Issue