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: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//SortFieldFans by fans
	SortFieldFans = "fans_count"
	//SortFieldMonthFans by month increase
	SortFieldMonthFans = "fans_count_increase_month"
	//SortFieldArchiveCount by archive count
	SortFieldArchiveCount = "archive_count"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service struct

func New

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

New init

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) CmdReloadRankCache

func (s *Service) CmdReloadRankCache(c context.Context, arg *mcnmodel.CmdReloadRank) (res *mcnmodel.CommonReply, err error)

CmdReloadRankCache reload cache

func (*Service) CreativeHandle

func (s *Service) CreativeHandle(c context.Context, arg *mcnmodel.CreativeCommonReq, params url.Values, key string) (res interface{}, err error)

CreativeHandle .

func (*Service) GetBaseFansAttrReq

func (s *Service) GetBaseFansAttrReq(c context.Context, arg *mcnmodel.McnGetBaseFansAttrReq) (res *mcnmodel.McnGetBaseFansAttrReply, err error)

GetBaseFansAttrReq .

func (*Service) GetFansArea

func (s *Service) GetFansArea(c context.Context, arg *mcnmodel.McnGetFansAreaReq) (res *mcnmodel.McnGetFansAreaReply, err error)

GetFansArea .

func (*Service) GetFansAreaAPI

func (s *Service) GetFansAreaAPI(c context.Context, arg *mcnmodel.McnGetFansAreaReq) (res *mcnmodel.McnGetFansAreaReply, err error)

GetFansAreaAPI .

func (*Service) GetFansBaseFansAttrAPI

func (s *Service) GetFansBaseFansAttrAPI(c context.Context, arg *mcnmodel.McnGetBaseFansAttrReq) (res *mcnmodel.McnGetBaseFansAttrReply, err error)

GetFansBaseFansAttrAPI .

func (*Service) GetFansTag

func (s *Service) GetFansTag(c context.Context, arg *mcnmodel.McnGetFansTagReq) (res *mcnmodel.McnGetFansTagReply, err error)

GetFansTag .

func (*Service) GetFansTagAPI

func (s *Service) GetFansTagAPI(c context.Context, arg *mcnmodel.McnGetFansTagReq) (res *mcnmodel.McnGetFansTagReply, err error)

GetFansTagAPI .

func (*Service) GetFansType

func (s *Service) GetFansType(c context.Context, arg *mcnmodel.McnGetFansTypeReq) (res *mcnmodel.McnGetFansTypeReply, err error)

GetFansType .

func (*Service) GetFansTypeAPI

func (s *Service) GetFansTypeAPI(c context.Context, arg *mcnmodel.McnGetFansTypeReq) (res *mcnmodel.McnGetFansTypeReply, err error)

GetFansTypeAPI .

func (*Service) GetIndexIncAPI

func (s *Service) GetIndexIncAPI(c context.Context, arg *mcnmodel.McnGetIndexIncReq) (res *mcnmodel.McnGetIndexIncReply, err error)

GetIndexIncAPI .

func (*Service) GetIndexSourceAPI

func (s *Service) GetIndexSourceAPI(c context.Context, arg *mcnmodel.McnGetIndexSourceReq) (res *mcnmodel.McnGetIndexSourceReply, err error)

GetIndexSourceAPI .

func (*Service) GetMcnFans

func (s *Service) GetMcnFans(c context.Context, arg *mcnmodel.McnGetMcnFansReq) (res *mcnmodel.McnGetMcnFansReply, err error)

GetMcnFans .

func (*Service) GetMcnFansAPI

func (s *Service) GetMcnFansAPI(c context.Context, arg *mcnmodel.McnGetMcnFansReq) (res *mcnmodel.McnGetMcnFansReply, err error)

GetMcnFansAPI .

func (*Service) GetMcnFansAttentionWay

GetMcnFansAttentionWay .

func (*Service) GetMcnFansAttentionWayAPI

GetMcnFansAttentionWayAPI .

func (*Service) GetMcnFansDec

GetMcnFansDec .

func (*Service) GetMcnFansDecAPI

func (s *Service) GetMcnFansDecAPI(c context.Context, arg *mcnmodel.McnGetMcnFansDecReq) (res *mcnmodel.McnGetMcnFansDecReply, err error)

GetMcnFansDecAPI .

func (*Service) GetMcnFansInc

GetMcnFansInc .

func (*Service) GetMcnFansIncAPI

func (s *Service) GetMcnFansIncAPI(c context.Context, arg *mcnmodel.McnGetMcnFansIncReq) (res *mcnmodel.McnGetMcnFansIncReply, err error)

GetMcnFansIncAPI .

func (*Service) GetMcnGetIndexInc

func (s *Service) GetMcnGetIndexInc(c context.Context, arg *mcnmodel.McnGetIndexIncReq) (res *mcnmodel.McnGetIndexIncReply, err error)

GetMcnGetIndexInc .

func (*Service) GetMcnGetIndexSource

func (s *Service) GetMcnGetIndexSource(c context.Context, arg *mcnmodel.McnGetIndexSourceReq) (res *mcnmodel.McnGetIndexSourceReply, err error)

GetMcnGetIndexSource .

func (*Service) GetMcnSummaryAPI

func (s *Service) GetMcnSummaryAPI(c context.Context, arg *mcnmodel.McnGetDataSummaryReq) (res *mcnmodel.McnGetDataSummaryReply, err error)

GetMcnSummaryAPI .

func (*Service) GetPlaySource

GetPlaySource .

func (*Service) GetPlaySourceAPI

func (s *Service) GetPlaySourceAPI(c context.Context, arg *mcnmodel.McnGetPlaySourceReq) (res *mcnmodel.McnGetPlaySourceReply, err error)

GetPlaySourceAPI .

func (*Service) GetRecommendPool

GetRecommendPool get recommend pool reply

func (*Service) GetRecommendPoolTidList

GetRecommendPoolTidList get tid list

func (*Service) GetUpAccountInfo

func (s *Service) GetUpAccountInfo(c context.Context, arg *mcnmodel.McnGetAccountReq) (result *mcnmodel.McnGetAccountReply, err error)

GetUpAccountInfo get account info

func (*Service) McnApply

func (s *Service) McnApply(c context.Context, arg *mcnmodel.McnApplyReq) (res *mcnmodel.CommonReply, err error)

McnApply .

func (*Service) McnBaseInfo

func (s *Service) McnBaseInfo(c context.Context, arg *mcnmodel.GetStateReq) (res *mcnmodel.McnBaseInfoReply, err error)

McnBaseInfo .

func (*Service) McnBindUpApply

func (s *Service) McnBindUpApply(c context.Context, arg *mcnmodel.McnBindUpApplyReq) (res *mcnmodel.McnBindUpApplyReply, err error)

McnBindUpApply .

func (*Service) McnChangePermit

func (s *Service) McnChangePermit(c context.Context, arg *mcnmodel.McnChangePermitReq) (res *mcnmodel.McnChangePermitReply, err error)

McnChangePermit change up's permission

func (*Service) McnDataSummary

McnDataSummary .

func (*Service) McnDataUpList

func (s *Service) McnDataUpList(c context.Context, arg *mcnmodel.McnGetUpListReq) (res *mcnmodel.McnGetUpListReply, err error)

McnDataUpList .

func (*Service) McnExist

func (s *Service) McnExist(c context.Context, arg *mcnmodel.GetStateReq) (res *mcnmodel.McnExistReply, err error)

McnExist .

func (*Service) McnGetOldInfo

McnGetOldInfo .

func (*Service) McnGetRankArchiveLikes

func (s *Service) McnGetRankArchiveLikes(c context.Context, arg *mcnmodel.McnGetRankReq) (res *mcnmodel.McnGetRankUpFansReply, err error)

McnGetRankArchiveLikes get rank archive likes

func (*Service) McnGetRankArchiveLikesAPI

func (s *Service) McnGetRankArchiveLikesAPI(c context.Context, arg *mcnmodel.McnGetRankAPIReq) (res *mcnmodel.McnGetRankUpFansReply, err error)

McnGetRankArchiveLikesAPI get rank archive likes

func (*Service) McnGetRankUpFans

func (s *Service) McnGetRankUpFans(c context.Context, arg *mcnmodel.McnGetRankReq) (res *mcnmodel.McnGetRankUpFansReply, err error)

McnGetRankUpFans get up rank fans

func (*Service) McnGetState

func (s *Service) McnGetState(c context.Context, arg *mcnmodel.GetStateReq) (res *mcnmodel.McnGetStateReply, err error)

McnGetState mcn state

func (*Service) McnPermitApplyGetBind

func (s *Service) McnPermitApplyGetBind(c context.Context, arg *mcnmodel.McnUpGetBindReq) (res *mcnmodel.McnGetBindReply, err error)

McnPermitApplyGetBind get permit apply bind

func (*Service) McnPublicationPriceChange

McnPublicationPriceChange .

func (*Service) McnUpConfirm

func (s *Service) McnUpConfirm(c context.Context, arg *mcnmodel.McnUpConfirmReq) (res *mcnmodel.CommonReply, err error)

McnUpConfirm .

func (*Service) McnUpGetBind

func (s *Service) McnUpGetBind(c context.Context, arg *mcnmodel.McnUpGetBindReq) (res *mcnmodel.McnGetBindReply, err error)

McnUpGetBind .

func (*Service) McnUpPermitApplyConfirm

func (s *Service) McnUpPermitApplyConfirm(c context.Context, arg *mcnmodel.McnUpConfirmReq) (res *mcnmodel.CommonReply, err error)

McnUpPermitApplyConfirm permit apply confirm

func (*Service) Ping

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

Ping Service

func (*Service) Upload

func (s *Service) Upload(c context.Context, fileName, fileType string, expire int64, body io.Reader) (location string, err error)

Upload http upload file.

type UniqueCheck

type UniqueCheck struct {
	// all the values is mcn id
	PhoneMap            map[string]int64
	IDCardMap           map[string]int64
	CompanyNameMap      map[string]int64
	CompanyLicenseIDMap map[string]int64
	// contains filtered or unexported fields
}

UniqueCheck check unique

func NewUniqueCheck

func NewUniqueCheck() *UniqueCheck

NewUniqueCheck new checker

func (*UniqueCheck) AddItem

func (u *UniqueCheck) AddItem(sign *mcnmodel.McnSign)

AddItem add item from db

func (*UniqueCheck) CheckIsUniqe

func (u *UniqueCheck) CheckIsUniqe(req *mcnmodel.McnApplyReq) (err error)

CheckIsUniqe check is unique

Jump to

Keyboard shortcuts

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