zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
28.94k stars 3.91k forks source link

Api template file keywords @server, the custom key value do not support chinese. #4365

Open wjiaox opened 1 week ago

wjiaox commented 1 week ago

Describe the bug api template file keywords @server, the custom key value do not support chinese. use goctl-swagger to make a swagger json file, but get error.

To Reproduce goctl api plugin -plugin=goctl-swagger="swagger -filename $service.json" -api=$service/$service.api \ -dir=$service

  1. The code is

      @server (
           swtags: 登录模块 // english words is fine
      )
  2. The error is

      syntax error: expected '/' | 'DURATION' | 'IDENT' | 'INT' | 'STRING', got '登'

Environments (please complete the following information):

kesonan commented 5 days ago

@server ( swtags: "登录模块" // english words is fine )

wjiaox commented 4 days ago

@server ( swtags: "登录模块" // english words is fine )

I had try, it doesn't work! @kesonan