Ai
64 Star 415 Fork 134

admpub/nging

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
schema.go 370 Bytes
一键复制 编辑 原始数据 按行查看 历史
admpub 提交于 2020-04-04 17:15 +08:00 . update
package storer
import (
"github.com/webx-top/echo"
)
const (
StorerInfoKey = `NgingStorer`
)
func NewInfo() *Info {
return &Info{}
}
type Info struct {
Name string `json:"name" xml:"name"`
ID string `json:"id" xml:"id"`
}
func (s *Info) FromStore(v echo.H) *Info {
s.Name = v.String("name")
s.ID = v.String("id")
if s.ID == `0` {
s.ID = ``
}
return s
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/admpub/nging.git
git@gitee.com:admpub/nging.git
admpub
nging
nging
v2.2.3

搜索帮助