Ai
1 Star 0 Fork 0

鹏程/studygolang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
like.go 638 Bytes
一键复制 编辑 原始数据 按行查看 历史
polaris 提交于 2016-06-09 08:09 +08:00 . 改变目录结构
// Copyright 2016 The StudyGolang Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// http://studygolang.com
// Author: polaris polaris@studygolang.com
package model
import "time"
const (
FlagCancel = iota
FlagLike // 喜欢
FlagUnlike // 不喜欢(暂时不支持)
)
// 赞(喜欢)
type Like struct {
Uid int `json:"uid"`
Objid int `json:"objid"`
Objtype int `json:"objtype"`
Flag int `json:"flag"`
Ctime time.Time `json:"ctime" xorm:"<-"`
}
func (*Like) TableName() string {
return "likes"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/barry_zpc/studygolang.git
git@gitee.com:barry_zpc/studygolang.git
barry_zpc
studygolang
studygolang
master

搜索帮助