1 Star 0 Fork 0

王磊/earPicking

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
xmlMapper.go 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
package pojo
import "encoding/xml"
type XmlMapper struct {
XMLName xml.Name `xml:"mapper"`
NameSpace string `xml:"namespace,attr"`
XMLSelect []XmlSelect `xml:"select"`
XMLInsert []XmlInsert `xml:"insert"`
XMLUpdate []XmlUpdate `xml:"update"`
XMLDelete []XmlDelete `xml:"delete"`
}
type XmlSelect struct {
XMLName xml.Name `xml:"select"`
Id string `xml:"id,attr"`
DataBase string `xml:"dataBase,attr"`
Sql string `xml:",innerxml"`
}
type XmlInsert struct {
XMLName xml.Name `xml:"insert"`
Id string `xml:"id,attr"`
DataBase string `xml:"dataBase,attr"`
Sql string `xml:",innerxml"`
}
type XmlUpdate struct {
XMLName xml.Name `xml:"update"`
Id string `xml:"id,attr"`
DataBase string `xml:"dataBase,attr"`
Sql string `xml:",innerxml"`
}
type XmlDelete struct {
XMLName xml.Name `xml:"delete"`
Id string `xml:"id,attr"`
DataBase string `xml:"dataBase,attr"`
Sql string `xml:",innerxml"`
}
const (
SELECT string = "select"
UPDATE string = "update"
INSERT string = "insert"
DELETE string = "delete"
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/wjzqx010/ear-picking.git
git@gitee.com:wjzqx010/ear-picking.git
wjzqx010
ear-picking
earPicking
v1.0.6

搜索帮助