Skip to content

use 'gf gen ctrl' to support“type()” #3063

@whileW

Description

@whileW

gf gen ctrl 是否可以支持一下,下面这种语法
同一个api的req和res用type括起来是不是更清晰一点?

type (
	CreateReq struct {
		g.Meta `path:"/administrator/v1/create" method:"post" tags:"AdministratorService" summary:"Create a new administrator"`
	}
	CreateRes struct{}
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions