appeal

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: 18 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 struct

func New

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

New get service

func (*Service) Add

func (s *Service) Add(c context.Context, mid, aid int64, qq, phone, email, desc, attachments, ip string, ap *appeal.BusinessAppeal) (apID int64, err error)

Add create an appeal.

func (*Service) Close

func (s *Service) Close()

Close dao

func (*Service) Detail

func (s *Service) Detail(c context.Context, mid, cid int64, ip string) (ap *appeal.Appeal, err error)

Detail get a appeal and events.

func (*Service) List

func (s *Service) List(c context.Context, mid int64, pn, ps int, tp, ip string) (all, open, closed int, res []*appeal.Appeal, err error)

List get appeal List.

func (*Service) PhoneEmail

func (s *Service) PhoneEmail(c context.Context, ck, ip string) (ct *appeal.Contact, err error)

PhoneEmail get user phone & email

func (*Service) Ping

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

Ping service

func (*Service) Reply

func (s *Service) Reply(c context.Context, mid, cid, event int64, content, attachments, ip string) (err error)

Reply add reply an appeal.

func (*Service) Star

func (s *Service) Star(c context.Context, mid, cid, star int64, ip string) (err error)

Star give star to appeal.

func (*Service) State

func (s *Service) State(c context.Context, mid, cid, state int64, ip string) (err error)

State shutdown an appeal.

Jump to

Keyboard shortcuts

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