Skip to content

gen ctrl : 增加一个参数使ctrl 的接口返回值 不带 err error #4570

@y9rAaNIgbKB9Yn

Description

@y9rAaNIgbKB9Yn

Description

例如 :Hello(ctx context.Context, req *v1.HelloReq) (res *v1.HelloRes, err error)
期望:Hello(ctx context.Context, req *v1.HelloReq) ( *v1.HelloRes, error)
按 Go 的惯用写法,命名返回值通常只在确有需要时使用(如 defer 场景),因此建议改为显式返回值形式

Additional

gen ctr 生成的时候加个参数

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