operation

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: 11 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 {
	NoticeStr   string
	CreativeStr string

	WebRelOperCache     map[string][]*operMdl.Operation
	CreatorRelOperCache map[string][]*operMdl.Operation
	// contains filtered or unexported fields
}

Service struct

func New

func New(c *conf.Config, rpcdaos *service.RPCDaos) *Service

New get service

func (*Service) AppBanner

func (s *Service) AppBanner(c context.Context) (bns []*operMdl.Banner, cbns []*operMdl.BannerCreator, err error)

AppBanner get app index flexslider; filter by platform + business + remark

func (*Service) AppOperationList

func (s *Service) AppOperationList(c context.Context, pn, ps int, tp string) (list *operMdl.BannerList, err error)

AppOperationList get operations list.

func (*Service) Close

func (s *Service) Close()

Close dao

func (*Service) CreatorOperationList

func (s *Service) CreatorOperationList(c context.Context, pn, ps int) (list *operMdl.BannerList, err error)

CreatorOperationList get operations list.

func (*Service) Ping

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

Ping service

func (*Service) Tool

func (s *Service) Tool(c context.Context, ty int8) (ops []*operMdl.Operation, err error)

Tool get a tool down.

func (*Service) WebOperations

func (s *Service) WebOperations(c context.Context) (ops map[string][]*operMdl.Operation, err error)

WebOperations get full operations.

Jump to

Keyboard shortcuts

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