mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-07 09:01:18 +08:00
修复生成的文档注释返回结构不正确
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user