go-zero icon indicating copy to clipboard operation
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?

Open yigeqiji opened this issue 1 year ago โ€ข 5 comments

image

yigeqiji avatar Sep 19 '22 06:09 yigeqiji

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


image

Issues-translate-bot avatar Sep 19 '22 06:09 Issues-translate-bot

I've added it to another template for now, but I don't think it's a good solution. image

yigeqiji avatar Sep 19 '22 06:09 yigeqiji

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

kesonan avatar Sep 20 '22 01:09 kesonan

ๆˆ‘ๆ˜ฏ็›ดๆŽฅๅœจupdate่ฟ™ไธชๆจก็‰ˆๆ–ฐๅขžๆ–นๆณ•๏ผŒ็„ถๅŽไฟฎๆ”นgoctlไปฃ็ ๏ผŒๆ–ฐๅขž่‡ชๅทฑ้œ€่ฆ็š„ๅ‚ๆ•ฐ

jsonMark avatar Sep 21 '22 09:09 jsonMark

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

Issues-translate-bot avatar Sep 21 '22 09:09 Issues-translate-bot