Documentation ¶
Index ¶
- type Service
- func (s *Service) Add(c context.Context, mid, aid int64, ...) (apID int64, err error)
- func (s *Service) Close()
- func (s *Service) Detail(c context.Context, mid, cid int64, ip string) (ap *appeal.Appeal, err error)
- func (s *Service) List(c context.Context, mid int64, pn, ps int, tp, ip string) (all, open, closed int, res []*appeal.Appeal, err error)
- func (s *Service) PhoneEmail(c context.Context, ck, ip string) (ct *appeal.Contact, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Reply(c context.Context, mid, cid, event int64, content, attachments, ip string) (err error)
- func (s *Service) Star(c context.Context, mid, cid, star int64, ip string) (err error)
- func (s *Service) State(c context.Context, mid, cid, state int64, ip string) (err error)
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 (*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) 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 ¶
PhoneEmail get user phone & email
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.
Click to show internal directories.
Click to hide internal directories.