# Functions
*
//例子
//GoMybatis当前是以xml内容为主gm:""注解只是生成xml的时候使用
//定义数据库模型, gm:"id"表示输出id的xml,gm:"version"表示为输出版本号的xml,gm:"logic"表示输出逻辑删除xml
type TestActivity struct {
Id string `json:"id" gm:"id"`
Uuid string `json:"uuid"`
Name string `json:"name"`
PcLink string `json:"pcLink"`
H5Link string `json:"h5Link"`
Remark string `json:"remark"`
Version int `json:"version" gm:"version"`
CreatedAt time.Time `json:"createTime"`
DeleteFlag int `json:"deleteFlag" gm:"logic"`
}
func TestUserAddres(t *testing.T) {
var s=utils.CreateDefaultXml("biz_user_address",TestActivity{})//创建xml内容
utils.OutPutXml("D:/GOPATH/src/dao/ActivityMapper.xml",[]byte(s))//写入磁盘
}
*/根据结构体 创建xml文件.
No description provided by the author
No description provided by the author
输出文件.
转蛇形命名snake string, XxYy to xx_yy , XxYY to xx_yy.
结构体名称转蛇形名称 例如 pcLink = pc_link.
# Constants
child elements.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
root templete elements.
No description provided by the author
No description provided by the author
root elements.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author