extern

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 (
	PathDeleteReplyByIds = "/x/internal/v2/reply/del"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*ReplyServiceClient
}

func NewClient

func NewClient(c *conf.Config) *Client

type Handler

type Handler interface {
	ReplyHandler
}

type MockExternHandler

type MockExternHandler struct {
	ErrDeleteReply error
}

func (*MockExternHandler) DeleteReply

func (mf *MockExternHandler) DeleteReply(ctx context.Context, adminID int64, ks []*Reply) error

type Reply

type Reply struct {
	Id    int64 `json:"id"`
	OId   int64 `json:"oid"`
	OType int64 `json:"typ"`
}

type ReplyHandler

type ReplyHandler interface {
	DeleteReply(ctx context.Context, adminId int64, rs []*Reply) error
}

type ReplyServiceClient

type ReplyServiceClient struct {
	// contains filtered or unexported fields
}

func (*ReplyServiceClient) DeleteReply

func (self *ReplyServiceClient) DeleteReply(ctx context.Context, adminId int64, rs []*Reply) error

type ReplyServiceResp

type ReplyServiceResp struct {
	Code    int         `json:"code"`
	Message string      `json:"messge"`
	Data    interface{} `json:"data"`
}

type Replys

type Replys []*Reply

func (Replys) Ids

func (rs Replys) Ids() string

func (Replys) OIds

func (rs Replys) OIds() string

func (Replys) OTypes

func (rs Replys) OTypes() string

Jump to

Keyboard shortcuts

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