1 Star 0 Fork 0

i-hea / models

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ttsInfo.go 596 Bytes
一键复制 编辑 原始数据 按行查看 历史
Peter 提交于 2021-04-22 19:33 . feat:
package models
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/orm"
"time"
)
type IpccTtsInfo struct {
//Id int64 `orm:"pk"`
TtsId string `orm:"size(16);unique;column(ttsId);pk"`
Name string
Update time.Time `orm:"auto_now;type(datetime)"`
}
func RegIpccTtsManager() {
orm.RegisterModel(new(IpccTtsInfo))
}
func GetAllTtsInfo() (result []IpccTtsInfo, err error) {
o := orm.NewOrm()
o.Using("default")
_, err = o.QueryTable("IpccTtsInfo").All(&result)
if err != nil {
beego.Error("query table err:%v", err)
return result, err
}
return result, err
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/i-hea/models.git
git@gitee.com:i-hea/models.git
i-hea
models
models
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891