|
|
|
@ -125,7 +125,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Update{{.StructName}}(c *gin.Con
|
|
|
|
// @accept application/json
|
|
|
|
// @accept application/json
|
|
|
|
// @Produce application/json
|
|
|
|
// @Produce application/json
|
|
|
|
// @Param data query {{.Package}}.{{.StructName}} true "用id查询{{.Description}}"
|
|
|
|
// @Param data query {{.Package}}.{{.StructName}} true "用id查询{{.Description}}"
|
|
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
|
|
|
|
// @Success 200 {object} {{.Package}}.{{.StructName}}{}"
|
|
|
|
// @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) {
|
|
|
|
{{.PrimaryField.FieldJson}} := c.Query("{{.PrimaryField.FieldJson}}")
|
|
|
|
{{.PrimaryField.FieldJson}} := c.Query("{{.PrimaryField.FieldJson}}")
|
|
|
|
@ -144,7 +144,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Find{{.StructName}}(c *gin.Conte
|
|
|
|
// @accept application/json
|
|
|
|
// @accept application/json
|
|
|
|
// @Produce application/json
|
|
|
|
// @Produce application/json
|
|
|
|
// @Param data query {{.Package}}Req.{{.StructName}}Search true "分页获取{{.Description}}列表"
|
|
|
|
// @Param data query {{.Package}}Req.{{.StructName}}Search true "分页获取{{.Description}}列表"
|
|
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
|
|
|
// @Success 200 {object} {{.Package}}.{{.StructName}}List{}"
|
|
|
|
// @Router /{{.Abbreviation}}/get{{.StructName}}List [get]
|
|
|
|
// @Router /{{.Abbreviation}}/get{{.StructName}}List [get]
|
|
|
|
func ({{.Abbreviation}}Api *{{.StructName}}Api) Get{{.StructName}}List(c *gin.Context) {
|
|
|
|
func ({{.Abbreviation}}Api *{{.StructName}}Api) Get{{.StructName}}List(c *gin.Context) {
|
|
|
|
var pageInfo {{.Package}}Req.{{.StructName}}Search
|
|
|
|
var pageInfo {{.Package}}Req.{{.StructName}}Search
|
|
|
|
|