Documentation
¶
Index ¶
- func CommentDel(cid int64) error
- func CommentGet(vid int64) ([]*model.Comment, error)
- func CommentPush(uid, vid int64, content string) (*model.Comment, error)
- func Feed(uid int64, ip, ty string, repeat bool) ([]model.Video, error)
- func GetDb() *gorm.DB
- func InitDb(d *gorm.DB)
- func Login(user, pawd string) (data *model.User, msg string, err error)
- func MessageGet(fid, tid, preTime int64) ([]*model.Message, error)
- func MessagePush(fid, tid int64, content string) error
- func Register(data *model.User) (msg string, err error)
- func RelationAction(fid, tid int64, ActionType int) error
- func RelationFollowGet(uid, tid int64) ([]*model.User, error)
- func RelationFollowerGet(uid, tid int64) ([]*model.User, error)
- func RelationFriendGet(uid int64) ([]*model.FriendUser, error)
- func UserInfo(id int64) (data model.User, msg string, err error)
- func VideoFollowList(uid int64) ([]*model.Video, error)
- func VideoLike(uid, vid int64, _type int) error
- func VideoLikeList(uid int64) ([]*model.Video, error)
- func VideoList(uid int64) ([]*model.Video, error)
- func VideoUpload(uid int64, file multipart.File, PlayUrl, CoverUrl, title, typeOf string, ...) (int64, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommentPush ¶
CommentPush 发送评论
func MessageGet ¶
MessageGet 获取消息列表
func RelationAction ¶
RelationAction 关注/取关
func RelationFollowGet ¶
RelationFollowGet 获取关注列表 uid:本人id tid:待查id
func RelationFollowerGet ¶
RelationFollowerGet 获取粉丝列表 uid:本人id tid:待查id
func RelationFriendGet ¶
func RelationFriendGet(uid int64) ([]*model.FriendUser, error)
RelationFriendGet 获取好友列表 uid:本人id tid:待查id
func VideoFollowList ¶
VideoFollowList 获取关注作品列表
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.