1 Star 1 Fork 1

xiaoyutab / xgotool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cpp_apifox.go 464 Bytes
一键复制 编辑 原始数据 按行查看 历史
xiaoyutab 提交于 2024-04-24 16:54 . 调整cpp类型信息
package xconsole
import "fmt"
// 生成ApiFox的入参接口文档
//
// api apipost软件的参数结构化形式文档
func cppApiFox(api []apipostStruct) string {
s := ""
for i := 0; i < len(api); i++ {
typ := "string"
if v, ok := sql_jianrong[api[i].inputType]; ok {
typ = v.APIFOX
}
mus := "false"
if api[i].NotNull > 0 {
mus = "true"
}
s += fmt.Sprintf("\n\t// %s,%s,%s,,,%s", api[i].Key, typ, mus, api[i].Description)
}
return s
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/xiaoyutab/xgotool.git
git@gitee.com:xiaoyutab/xgotool.git
xiaoyutab
xgotool
xgotool
v0.3.13

搜索帮助