Documentation ¶
Index ¶
- func DBUserToRPCUser(m *db.User, fromID int64) (*user.User, error)
- func DBUsersToRPCUsers(ms []*db.User, fromID int64) ([]*user.User, error)
- func User(m *db.User) *user.User
- func Video(ctx context.Context, m *db.Video, myID int64) (*user.Video, error)
- func Videos(ctx context.Context, ms []*db.Video, myID int64) ([]*user.Video, error)
- type Follow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Follow ¶
type Follow struct { gorm.Model ID int64 `gorm:"column:id;primary_key;AUTO_INCERMENT"` FollowTime time.Time `gorm:"column:follow_time;default:CURRENT_TIMESTAMP;NOT NULL"` FromUserID int64 `gorm:"column:from_user_id;NOT NULL"` ToUserID int64 `gorm:"column:to_user_id;NOT NULL"` CreateTime time.Time `gorm:"column:create_time;default:CURRENT_TIMESTAMP;NOT NULL"` UpdateTime time.Time `gorm:"column:create_time;default:CURRENT_TIMESTAMP;NOT NULL"` }
Click to show internal directories.
Click to hide internal directories.