up

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

Documentation

Index

Constants

View Source
const (
	StaffWhiteGroupID = 24
)

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, rpcdaos *service.RPCDaos) *Service

New get service

func (*Service) ArcUpInfo

func (s *Service) ArcUpInfo(c context.Context, mid int64, ip string) (isAuthor int32, err error)

ArcUpInfo for main app submit.

func (*Service) Ping

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

Ping service

func (*Service) SetUpSwitch

func (s *Service) SetUpSwitch(c context.Context, mid int64, state, from int, ip string) (res *upmdl.PBSetUpSwitchRes, err error)

SetUpSwitch set switch.

func (*Service) ShowStaff

func (s *Service) ShowStaff(c context.Context, mid int64) (show bool, err error)

ShowStaff 用户是否能看到联合投稿

func (*Service) UpSwitch

func (s *Service) UpSwitch(c context.Context, mid int64, ip string) (res *up.Switch, err error)

UpSwitch get switch.

Jump to

Keyboard shortcuts

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