go-zero
go-zero copied to clipboard
How can goctl add a new model method, I named it as follows and it didn't work, how can it work or is there any other better solution?
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
I've added it to another template for now, but I don't think it's a good solution.
The template file does not support adding files, you can only modify the content on the existing template file or modify the template based on the existing variables in the template
ๆๆฏ็ดๆฅๅจupdate่ฟไธชๆจก็ๆฐๅขๆนๆณ๏ผ็ถๅไฟฎๆนgoctlไปฃ็ ๏ผๆฐๅข่ชๅทฑ้่ฆ็ๅๆฐ
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
I added a method directly to the update template, and then modified the goctl code to add the parameters I needed