parent
d19e446416
commit
21237f8be1
|
@ -130,7 +130,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Update{{.StructName}}(c *gin.Con
|
||||||
// @Security ApiKeyAuth
|
// @Security ApiKeyAuth
|
||||||
// @Accept application/json
|
// @Accept application/json
|
||||||
// @Produce application/json
|
// @Produce application/json
|
||||||
// @Param data query {{.PrimaryField.FieldType}} true "用id查询{{.Description}}"
|
// @Param {{.PrimaryField.FieldJson}} query {{.PrimaryField.FieldType}} true "用id查询{{.Description}}"
|
||||||
// @Success 200 {object} response.Response{data={{.Package}}.{{.StructName}},msg=string} "查询成功"
|
// @Success 200 {object} response.Response{data={{.Package}}.{{.StructName}},msg=string} "查询成功"
|
||||||
// @Router /{{.Abbreviation}}/find{{.StructName}} [get]
|
// @Router /{{.Abbreviation}}/find{{.StructName}} [get]
|
||||||
func ({{.Abbreviation}}Api *{{.StructName}}Api) Find{{.StructName}}(c *gin.Context) {
|
func ({{.Abbreviation}}Api *{{.StructName}}Api) Find{{.StructName}}(c *gin.Context) {
|
||||||
|
|
|
@ -130,7 +130,7 @@ func (a *{{.Abbreviation}}) Update{{.StructName}}(c *gin.Context) {
|
||||||
// @Security ApiKeyAuth
|
// @Security ApiKeyAuth
|
||||||
// @Accept application/json
|
// @Accept application/json
|
||||||
// @Produce application/json
|
// @Produce application/json
|
||||||
// @Param data query model.{{.StructName}} true "用id查询{{.Description}}"
|
// @Param {{.PrimaryField.FieldJson}} query {{.PrimaryField.FieldType}} true "用id查询{{.Description}}"
|
||||||
// @Success 200 {object} response.Response{data=model.{{.StructName}},msg=string} "查询成功"
|
// @Success 200 {object} response.Response{data=model.{{.StructName}},msg=string} "查询成功"
|
||||||
// @Router /{{.Abbreviation}}/find{{.StructName}} [get]
|
// @Router /{{.Abbreviation}}/find{{.StructName}} [get]
|
||||||
func (a *{{.Abbreviation}}) Find{{.StructName}}(c *gin.Context) {
|
func (a *{{.Abbreviation}}) Find{{.StructName}}(c *gin.Context) {
|
||||||
|
|
Loading…
Reference in New Issue