381 Star 2.5K Fork 616

GVPJohn / gf

 / 详情

和前端框架layui集成json大小写问题

已完成
创建于  
2020-01-17 20:23

layui table:
正确的成功状态码应为:"code": 0

后台定义的struct:
type LayiUiTable struct {
Code int
Msg string
Count int
Data []*dns_configserver.Entity
}

如何把LayiUiTable 序列号的json字符串,code等大写,可以考虑提供对接前端框架的一些工具类吗

评论 (2)

tianxia007 创建了任务

golang序列号json首字母需要大写,layui code必须小写。。。矛盾了。
大佬有什么方法吗

tianxia007 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
112612 dwxdfhx 1578918070
Go
1
https://gitee.com/johng/gf.git
git@gitee.com:johng/gf.git
johng
gf
gf

搜索帮助

53164aa7 5694891 3bd8fe86 5694891