Documentation ¶
Index ¶
- Constants
- type ArchiveDetailFilter
- type ArchiveFilters
- type ArchivePageFilter
- type ArchiveUpFilter
- type Dao
- func (d *Dao) AddBVCInfo(c context.Context, arg *model.VideoBVC) (err error)
- func (d *Dao) AddCacheVideoBase(c context.Context, videoBases map[int64]*v1.VideoBase) (err error)
- func (d *Dao) AddOrUpdateBVCInfo(c context.Context, arg *model.VideoBVC) (err error)
- func (d *Dao) AddOrUpdateFlowRecord(c context.Context, r *model.BVCRecord) error
- func (d *Dao) AddOrUpdateTag(c context.Context, tmap []*v1.TagInfo) (tids []int64, err error)
- func (d *Dao) AddOrUpdateVideo(c context.Context, vh *v1.ImportVideoInfo) (err error)
- func (d *Dao) AddVideoViews(c context.Context, svid int64, views int) (affected int64, err error)
- func (d *Dao) ArchiveKickOff(c context.Context, svid int64, a *model.Archive) (err error)
- func (d *Dao) ArchiveSub() (*model.Archive, error)
- func (d *Dao) BeginTran(c context.Context) (*xsql.Tx, error)
- func (d *Dao) CacheVideoBase(c context.Context, svids []int64) (res map[int64]*v1.VideoBase, err error)
- func (d *Dao) CheckSVResource(c context.Context, svid int64) (err error)
- func (d *Dao) Close()
- func (d *Dao) CmsPub(c context.Context, data *model.DataTopicCmsData) (err error)
- func (d *Dao) CommitTrans(c context.Context, arg *v1.BVideoTransRequset) error
- func (d *Dao) DelCacheVideoBase(c context.Context, svid int64)
- func (d *Dao) GetPrepareVUP(c context.Context, mid int64) (vups []*v1.UploadingVideo, err error)
- func (d *Dao) HomeImgCreate(c context.Context, vr *model.VideoRepository) (err error)
- func (d *Dao) HostnameRegister(hostnameIndex int64) (succ bool)
- func (d *Dao) InOrUpUserBase(c context.Context, mid int64) (response *v1.SyncUserBaseResponse, err error)
- func (d *Dao) InOrUpUserBases(c context.Context, mids []int64) (response *v1.SyncUserBaseResponse, err error)
- func (d *Dao) InOrUpUserSta(c context.Context, mid int64) (response *v1.SyncUserBaseResponse, err error)
- func (d *Dao) InOrUpUserStas(c context.Context, mids []int64) (response *v1.SyncUserBaseResponse, err error)
- func (d *Dao) InsertOrUpdateVUP(c context.Context, vup *model.VideoUploadProcess) (err error)
- func (d *Dao) InsertVR(c context.Context, vr *model.VideoRepository) (err error)
- func (d *Dao) ModifyLimits(c context.Context, svid int64, limitType uint64, limitOp uint64) (num int64, err error)
- func (d *Dao) Ping(c context.Context) error
- func (d *Dao) QueryVR(c context.Context, vr *model.VideoRepository) (res *model.VideoRepository, err error)
- func (d *Dao) RawSVBvcKey(c context.Context, svids []int64) (res map[int64][]*bbq.VideoBvc, err error)
- func (d *Dao) RawVideoBase(c context.Context, svids []int64) (res map[int64]*v1.VideoBase, err error)
- func (d *Dao) RawVideoStatistic(c context.Context, svids []int64) (res map[int64]*model.SvStInfo, err error)
- func (d *Dao) RelPlayURLs(c context.Context, addrs []string) (res map[string]*grpc.VideoKeyItem, err error)
- func (d *Dao) ReplyCounts(c context.Context, ids []int64, t int64) (res map[int64]*model.ReplyCount, err error)
- func (d *Dao) TxAddBVCInfo(tx *xsql.Tx, arg *model.VideoBVC) (err error)
- func (d *Dao) TxAddOrUpdateBVCInfo(c context.Context, tx *xsql.Tx, arg *model.VideoBVC) (err error)
- func (d *Dao) TxUpdataBVCInfo(tx *xsql.Tx, arg *model.VideoBVC) (err error)
- func (d *Dao) UpdataBVCInfo(c context.Context, arg *model.VideoBVC) (err error)
- func (d *Dao) UpdateCmsSvPIC(c context.Context, svid int64, pic *v1.SvPic, st int64) error
- func (d *Dao) UpdateVR(c context.Context, vr *model.VideoRepository) (err error)
- func (d *Dao) VideoBase(c context.Context, keys []int64) (res map[int64]*v1.VideoBase, err error)
- func (d *Dao) VideoStateUpdate(c context.Context, svid int64, newState int) (aff int64, err error)
- type Filter
Constants ¶
const (
//DefaultCmType 默认评论类型
DefaultCmType = 23
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveDetailFilter ¶
type ArchiveDetailFilter struct {
// contains filtered or unexported fields
}
ArchiveDetailFilter 稿件详情过滤
type ArchiveFilters ¶
type ArchiveFilters struct {
// contains filtered or unexported fields
}
ArchiveFilters .
type ArchivePageFilter ¶
type ArchivePageFilter struct {
// contains filtered or unexported fields
}
ArchivePageFilter 稿件尺寸过滤
type ArchiveUpFilter ¶
type ArchiveUpFilter struct {
// contains filtered or unexported fields
}
ArchiveUpFilter 稿件详情过滤
type Dao ¶
type Dao struct { AccountClient account.AccountClient ArchiveClient archive.ArchiveClient // contains filtered or unexported fields }
Dao dao
func (*Dao) AddBVCInfo ¶
AddBVCInfo 添加BVC转码信息
func (*Dao) AddCacheVideoBase ¶
AddCacheVideoBase 添加缓存
func (*Dao) AddOrUpdateBVCInfo ¶
AddOrUpdateBVCInfo 添加或更新BVC转码信息
func (*Dao) AddOrUpdateFlowRecord ¶
AddOrUpdateFlowRecord 添加bvc flow记录
func (*Dao) AddOrUpdateTag ¶
AddOrUpdateTag 更新或添加标签
func (*Dao) AddOrUpdateVideo ¶
AddOrUpdateVideo 添加或更新视频记录
func (*Dao) AddVideoViews ¶
AddVideoViews .
func (*Dao) ArchiveKickOff ¶
ArchiveKickOff .
func (*Dao) CacheVideoBase ¶
func (d *Dao) CacheVideoBase(c context.Context, svids []int64) (res map[int64]*v1.VideoBase, err error)
CacheVideoBase cache video base
func (*Dao) CheckSVResource ¶
CheckSVResource ...
func (*Dao) CommitTrans ¶
CommitTrans 提交转码
func (*Dao) DelCacheVideoBase ¶
DelCacheVideoBase 删除缓存
func (*Dao) GetPrepareVUP ¶
GetPrepareVUP 获取数据
func (*Dao) HomeImgCreate ¶
HomeImgCreate ..
func (*Dao) HostnameRegister ¶
HostnameRegister .
func (*Dao) InOrUpUserBase ¶
func (d *Dao) InOrUpUserBase(c context.Context, mid int64) (response *v1.SyncUserBaseResponse, err error)
InOrUpUserBase 更新用户基本信息
func (*Dao) InOrUpUserBases ¶
func (d *Dao) InOrUpUserBases(c context.Context, mids []int64) (response *v1.SyncUserBaseResponse, err error)
InOrUpUserBases 批量更新用户基本信息
func (*Dao) InOrUpUserSta ¶
func (d *Dao) InOrUpUserSta(c context.Context, mid int64) (response *v1.SyncUserBaseResponse, err error)
InOrUpUserSta 更新用户up主主站画像
func (*Dao) InOrUpUserStas ¶
func (d *Dao) InOrUpUserStas(c context.Context, mids []int64) (response *v1.SyncUserBaseResponse, err error)
InOrUpUserStas 批量更新用户状态
func (*Dao) InsertOrUpdateVUP ¶
InsertOrUpdateVUP ..
func (*Dao) ModifyLimits ¶
func (d *Dao) ModifyLimits(c context.Context, svid int64, limitType uint64, limitOp uint64) (num int64, err error)
ModifyLimits .
func (*Dao) QueryVR ¶
func (d *Dao) QueryVR(c context.Context, vr *model.VideoRepository) (res *model.VideoRepository, err error)
QueryVR ..
func (*Dao) RawSVBvcKey ¶
func (d *Dao) RawSVBvcKey(c context.Context, svids []int64) (res map[int64][]*bbq.VideoBvc, err error)
RawSVBvcKey 批量获取playurl相对地址
func (*Dao) RawVideoBase ¶
func (d *Dao) RawVideoBase(c context.Context, svids []int64) (res map[int64]*v1.VideoBase, err error)
RawVideoBase mysql获取video_base
func (*Dao) RawVideoStatistic ¶
func (d *Dao) RawVideoStatistic(c context.Context, svids []int64) (res map[int64]*model.SvStInfo, err error)
RawVideoStatistic get video statistics
func (*Dao) RelPlayURLs ¶
func (d *Dao) RelPlayURLs(c context.Context, addrs []string) (res map[string]*grpc.VideoKeyItem, err error)
RelPlayURLs 相对地址批量获取playurl
func (*Dao) ReplyCounts ¶
func (d *Dao) ReplyCounts(c context.Context, ids []int64, t int64) (res map[int64]*model.ReplyCount, err error)
ReplyCounts 批量评论数
func (*Dao) TxAddBVCInfo ¶
TxAddBVCInfo 事务添加BVC转码信息
func (*Dao) TxAddOrUpdateBVCInfo ¶
TxAddOrUpdateBVCInfo 事务添加或更新BVC转码信息
func (*Dao) TxUpdataBVCInfo ¶
TxUpdataBVCInfo 事务更新BVC转码信息
func (*Dao) UpdataBVCInfo ¶
UpdataBVCInfo 更新BVC转码信息
func (*Dao) UpdateCmsSvPIC ¶
UpdateCmsSvPIC 更新封面图