修复生成的文档注释返回结构不正确

This commit is contained in:
xiangheng
2024-07-01 22:23:14 +08:00
parent e37f313b09
commit a3ee34aa66
14 changed files with 4013 additions and 3521 deletions

View File

@@ -97,6 +97,11 @@ func (tu toolsUtil) GoToTsType(s string) string {
return "string"
}
// 拼接字符串
func (tu toolsUtil) GetPageResp(s string) string {
return `response.Response{ data=response.PageResp{ lists= []` + s + `Resp}}`
}
// Round float四舍五入
func (tu toolsUtil) Round(val float64, n int) float64 {
base := math.Pow(10, float64(n))