zeromicro / go-zero

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

if different service has the same handler, IDE will notice error #3869

Open sinclair-chen opened 9 months ago

sinclair-chen commented 9 months ago

@server( prefix: v1 group: general jwt: JwtAuth middleware : JwtBlackList )

service app { @doc "public new" @handler PublicAdd post /general/publicAdd (GeneralPublicAddReq) returns (GeneralPublicAddRep) }

@server( prefix: v1 group: baseCharge jwt: JwtAuth middleware : JwtBlackList )

service app { @doc "base charge public" @handler PublicAdd
post /baseCharge/addNewPublic (BaseChargeNewPublicReq) } ![Uploading 微信图片_20240124105119.png…]()

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@server( prefix: v1 group: general jwt: JwtAuth middleware : JwtBlackList )

service app { @doc "public new" @handler PublicAdd post /general/publicAdd (GeneralPublicAddReq) returns (GeneralPublicAddRep) }

@server( prefix: v1 group: baseCharge jwt: JwtAuth middleware : JwtBlackList )

service app { @doc "base charge public" @handler PublicAdd
post /baseCharge/addNewPublic (BaseChargeNewPublicReq) } ![Uploading 微信图片_20240124105119.png…]()

sinclair-chen commented 9 months ago

![Uploading 20240124105119.png…]()

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


![Uploading 20240124105119.png…]()

kesonan commented 9 months ago

Is your OS windows?