service

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service service struct

func New

func New(c *conf.Config) (s *Service)

New new service.

func (*Service) OpLog

func (s *Service) OpLog(c context.Context, cid, operator, OperationTime int64, typ int, dmids []int64, subject, originVal, currentVal, remark string, source oplog.Source, operatorType oplog.OperatorType) (err error)

OpLog put a new infoc format operation log into the channel

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping check thrid resource.

func (*Service) SubtitleFilter

func (s *Service) SubtitleFilter(c context.Context, oid int64, subtitleID int64) (err error)

SubtitleFilter . 1、只处理状态为审核待检测,发布待检测的数据 2、如果是审核待检测的数据,检测完毕,状态改为带审核,删除草稿缓存,删除字幕缓存 3、如果检测失败,状态改为审核驳回,并且更新驳回理由 删除缓存 4、如果是发布待检测的状态,检测完毕,状态改为发布,更新数据库逻辑,发布表更新,删除字幕缓存 5、如果发布检测失败。状态改为审核驳回,并且更新驳回理由。删除缓存 6、如果消费失败 数据丢失 容错

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL