添加修改表编码

This commit is contained in:
lifei6671
2017-05-01 20:24:43 +08:00
parent c36faea699
commit e282f3442b
3 changed files with 18 additions and 2 deletions

View File

@@ -32,7 +32,9 @@ func (u *CommentVote) TableUnique() [][]string {
[]string{"comment_id", "vote_member_id"},
}
}
func NewCommentVote() *CommentVote {
return &CommentVote{}
}
func (m *CommentVote) InsertOrUpdate() (*CommentVote,error) {
o := orm.NewOrm()