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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripImage

func StripImage(raw []byte) ([]byte, error)

StripImage is

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) AddMonitor

func (s *Service) AddMonitor(ctx context.Context, arg *model.ArgAddMonitor) error

AddMonitor is.

func (*Service) BaseReview

func (s *Service) BaseReview(ctx context.Context, arg *model.ArgBaseReview) ([]*model.BaseReview, error)

BaseReview is.

func (*Service) BatchFormal

func (s *Service) BatchFormal(ctx context.Context, arg *model.ArgBatchFormal) error

BatchFormal is

func (*Service) BlockImpl

func (s *Service) BlockImpl() *block.Service

BlockImpl is

func (*Service) ClearFace

func (s *Service) ClearFace(ctx context.Context, arg *model.ArgMids) error

ClearFace is

func (*Service) ClearName

func (s *Service) ClearName(ctx context.Context, arg *model.ArgMids) error

ClearName is

func (*Service) ClearSign

func (s *Service) ClearSign(ctx context.Context, arg *model.ArgMids) error

ClearSign is

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) DelMonitor

func (s *Service) DelMonitor(ctx context.Context, arg *model.ArgDelMonitor) error

DelMonitor is.

func (*Service) DelSign

func (s *Service) DelSign(ctx context.Context, arg *model.ArgMids) error

DelSign is.

func (*Service) ExpLog

func (s *Service) ExpLog(ctx context.Context, mid int64) ([]*model.UserLog, error)

ExpLog is.

func (*Service) FaceHistory

FaceHistory is.

func (*Service) FetchRealnameImage

func (s *Service) FetchRealnameImage(ctx context.Context, token string) ([]byte, error)

FetchRealnameImage is

func (*Service) MemberProfile

func (s *Service) MemberProfile(ctx context.Context, mid int64) (*model.Profile, error)

MemberProfile is.

func (*Service) Members

func (s *Service) Members(ctx context.Context, arg *model.ArgList) (*model.MemberPagination, error)

Members is.

func (*Service) Monitors

func (s *Service) Monitors(ctx context.Context, arg *model.ArgMonitor) ([]*model.Monitor, int, error)

Monitors is.

func (*Service) MoralLog

func (s *Service) MoralLog(ctx context.Context, mid int64) ([]*model.UserLog, error)

MoralLog is.

func (*Service) OfficialDoc

func (s *Service) OfficialDoc(ctx context.Context, mid int64) (od *model.OfficialDoc, logs *model.SearchLogResult, block *model.BlockResult, spys []*spymodel.Statistics, realname *model.Realname, sameCreditCodeMids []int64, err error)

OfficialDoc is.

func (*Service) OfficialDocAddits

func (s *Service) OfficialDocAddits(ctx context.Context, property string, vstring string) ([]*model.OfficialDocAddit, error)

OfficialDocAddits find mids by property and value

func (*Service) OfficialDocAudit

func (s *Service) OfficialDocAudit(ctx context.Context, arg *model.ArgOfficialAudit) (err error)

OfficialDocAudit is.

func (*Service) OfficialDocEdit

func (s *Service) OfficialDocEdit(ctx context.Context, arg *model.ArgOfficialEdit) (err error)

OfficialDocEdit is.

func (*Service) OfficialDocSubmit

func (s *Service) OfficialDocSubmit(ctx context.Context, arg *model.ArgOfficialSubmit) (err error)

OfficialDocSubmit is.

func (*Service) OfficialDocs

func (s *Service) OfficialDocs(ctx context.Context, arg *model.ArgOfficialDoc) ([]*model.OfficialDoc, int, error)

OfficialDocs is.

func (*Service) Officials

func (s *Service) Officials(ctx context.Context, arg *model.ArgOfficial) ([]*model.Official, int, error)

Officials is.

func (*Service) Ping

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

Ping Service

func (*Service) PubExpMsg

func (s *Service) PubExpMsg(ctx context.Context, arg *model.ArgPubExpMsg) (err error)

PubExpMsg is.

func (*Service) RealnameAuditApply

func (s *Service) RealnameAuditApply(ctx context.Context, arg *model.ArgRealnameAuditApply, adminName string, adminID int64) (err error)

RealnameAuditApply .

func (*Service) RealnameExcel

func (s *Service) RealnameExcel(ctx context.Context, mids []int64) ([]*model.RealnameExport, error)

RealnameExcel export user realname info

func (*Service) RealnameFileUpload

func (s *Service) RealnameFileUpload(ctx context.Context, mid int64, data []byte) (src string, err error)

RealnameFileUpload is

func (*Service) RealnameImage

func (s *Service) RealnameImage(ctx context.Context, token string) ([]byte, error)

RealnameImage return img

func (*Service) RealnameImagePreview

func (s *Service) RealnameImagePreview(ctx context.Context, token string, borderSize uint) (data []byte, err error)

RealnameImagePreview return preview img

func (*Service) RealnameList

func (s *Service) RealnameList(ctx context.Context, arg *model.ArgRealnameList) (list []*model.RespRealnameApply, total int, err error)

RealnameList .

func (*Service) RealnamePendingList

func (s *Service) RealnamePendingList(ctx context.Context, arg *model.ArgRealnamePendingList) (list []*model.RespRealnameApply, total int, err error)

RealnamePendingList .

func (*Service) RealnameReasonList

func (s *Service) RealnameReasonList(ctx context.Context, arg *model.ArgRealnameReasonList) (list []string, total int, err error)

RealnameReasonList .

func (*Service) RealnameSearchCard

func (s *Service) RealnameSearchCard(ctx context.Context, cards []string, cardType int, country int) (data map[string]int64, err error)

RealnameSearchCard .

func (*Service) RealnameSetReason

func (s *Service) RealnameSetReason(ctx context.Context, arg *model.ArgRealnameSetReason) (err error)

RealnameSetReason .

func (*Service) RealnameSubmit

func (s *Service) RealnameSubmit(ctx context.Context, arg *model.ArgRealnameSubmit) error

RealnameSubmit is

func (*Service) RealnameUnbind

func (s *Service) RealnameUnbind(ctx context.Context, mid int64, adminName string, adminID int64) (err error)

RealnameUnbind is.

func (*Service) Review

Review is.

func (*Service) ReviewAudit

func (s *Service) ReviewAudit(ctx context.Context, arg *model.ArgReviewAudit) error

ReviewAudit is.

func (*Service) Reviews

Reviews is.

func (*Service) SetAdditRemark

func (s *Service) SetAdditRemark(ctx context.Context, arg *model.ArgAdditRemarkSet) error

SetAdditRemark is.

func (*Service) SetCoin

func (s *Service) SetCoin(ctx context.Context, arg *model.ArgCoinSet) error

SetCoin is.

func (*Service) SetExp

func (s *Service) SetExp(ctx context.Context, arg *model.ArgExpSet) error

SetExp is.

func (*Service) SetMoral

func (s *Service) SetMoral(ctx context.Context, arg *model.ArgMoralSet) error

SetMoral is.

func (*Service) SetRank

func (s *Service) SetRank(ctx context.Context, arg *model.ArgRankSet) error

SetRank is.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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