dto

package
v0.0.0-...-94da729 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpService_CreateBot_FullMethodName         = "/dto.HttpService/CreateBot"
	HttpService_DeleteBot_FullMethodName         = "/dto.HttpService/DeleteBot"
	HttpService_ListBot_FullMethodName           = "/dto.HttpService/ListBot"
	HttpService_SolveCaptcha_FullMethodName      = "/dto.HttpService/SolveCaptcha"
	HttpService_FetchQRCode_FullMethodName       = "/dto.HttpService/FetchQRCode"
	HttpService_QueryQRCodeStatus_FullMethodName = "/dto.HttpService/QueryQRCodeStatus"
	HttpService_ListPlugin_FullMethodName        = "/dto.HttpService/ListPlugin"
	HttpService_SavePlugin_FullMethodName        = "/dto.HttpService/SavePlugin"
	HttpService_DeletePlugin_FullMethodName      = "/dto.HttpService/DeletePlugin"
)

Variables

View Source
var (
	Bot_Captcha_CaptchaType_name = map[int32]string{
		0: "PIC_CAPTCHA",
		1: "SLIDER_CAPTCHA",
		2: "UNSAFE_DEVICE_LOGIN_VERIFY",
		4: "SMS",
	}
	Bot_Captcha_CaptchaType_value = map[string]int32{
		"PIC_CAPTCHA":                0,
		"SLIDER_CAPTCHA":             1,
		"UNSAFE_DEVICE_LOGIN_VERIFY": 2,
		"SMS":                        4,
	}
)

Enum value maps for Bot_Captcha_CaptchaType.

View Source
var (
	QRCodeLoginResp_QRCodeLoginState_name = map[int32]string{
		0: "Unknown",
		1: "QRCodeImageFetch",
		2: "QRCodeWaitingForScan",
		3: "QRCodeWaitingForConfirm",
		4: "QRCodeTimeout",
		5: "QRCodeConfirmed",
		6: "QRCodeCanceled",
	}
	QRCodeLoginResp_QRCodeLoginState_value = map[string]int32{
		"Unknown":                 0,
		"QRCodeImageFetch":        1,
		"QRCodeWaitingForScan":    2,
		"QRCodeWaitingForConfirm": 3,
		"QRCodeTimeout":           4,
		"QRCodeConfirmed":         5,
		"QRCodeCanceled":          6,
	}
)

Enum value maps for QRCodeLoginResp_QRCodeLoginState.

View Source
var File_http_dto_proto protoreflect.FileDescriptor
View Source
var HttpService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dto.HttpService",
	HandlerType: (*HttpServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateBot",
			Handler:    _HttpService_CreateBot_Handler,
		},
		{
			MethodName: "DeleteBot",
			Handler:    _HttpService_DeleteBot_Handler,
		},
		{
			MethodName: "ListBot",
			Handler:    _HttpService_ListBot_Handler,
		},
		{
			MethodName: "SolveCaptcha",
			Handler:    _HttpService_SolveCaptcha_Handler,
		},
		{
			MethodName: "FetchQRCode",
			Handler:    _HttpService_FetchQRCode_Handler,
		},
		{
			MethodName: "QueryQRCodeStatus",
			Handler:    _HttpService_QueryQRCodeStatus_Handler,
		},
		{
			MethodName: "ListPlugin",
			Handler:    _HttpService_ListPlugin_Handler,
		},
		{
			MethodName: "SavePlugin",
			Handler:    _HttpService_SavePlugin_Handler,
		},
		{
			MethodName: "DeletePlugin",
			Handler:    _HttpService_DeletePlugin_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "http_dto.proto",
}

HttpService_ServiceDesc is the grpc.ServiceDesc for HttpService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterHttpServiceServer

func RegisterHttpServiceServer(s grpc.ServiceRegistrar, srv HttpServiceServer)

Types

type Bot

type Bot struct {
	BotId    int64        `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
	IsOnline bool         `protobuf:"varint,2,opt,name=is_online,json=isOnline,proto3" json:"is_online,omitempty"`
	Captcha  *Bot_Captcha `protobuf:"bytes,3,opt,name=captcha,proto3" json:"captcha,omitempty"`
	// contains filtered or unexported fields
}

func (*Bot) Descriptor deprecated

func (*Bot) Descriptor() ([]byte, []int)

Deprecated: Use Bot.ProtoReflect.Descriptor instead.

func (*Bot) GetBotId

func (x *Bot) GetBotId() int64

func (*Bot) GetCaptcha

func (x *Bot) GetCaptcha() *Bot_Captcha

func (*Bot) GetIsOnline

func (x *Bot) GetIsOnline() bool

func (*Bot) ProtoMessage

func (*Bot) ProtoMessage()

func (*Bot) ProtoReflect

func (x *Bot) ProtoReflect() protoreflect.Message

func (*Bot) Reset

func (x *Bot) Reset()

func (*Bot) String

func (x *Bot) String() string

type Bot_Captcha

type Bot_Captcha struct {
	BotId       int64                   `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
	CaptchaType Bot_Captcha_CaptchaType `` /* 128-byte string literal not displayed */
	// Types that are assignable to Data:
	//
	//	*Bot_Captcha_Url
	//	*Bot_Captcha_Image
	Data isBot_Captcha_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*Bot_Captcha) Descriptor deprecated

func (*Bot_Captcha) Descriptor() ([]byte, []int)

Deprecated: Use Bot_Captcha.ProtoReflect.Descriptor instead.

func (*Bot_Captcha) GetBotId

func (x *Bot_Captcha) GetBotId() int64

func (*Bot_Captcha) GetCaptchaType

func (x *Bot_Captcha) GetCaptchaType() Bot_Captcha_CaptchaType

func (*Bot_Captcha) GetData

func (m *Bot_Captcha) GetData() isBot_Captcha_Data

func (*Bot_Captcha) GetImage

func (x *Bot_Captcha) GetImage() []byte

func (*Bot_Captcha) GetUrl

func (x *Bot_Captcha) GetUrl() string

func (*Bot_Captcha) ProtoMessage

func (*Bot_Captcha) ProtoMessage()

func (*Bot_Captcha) ProtoReflect

func (x *Bot_Captcha) ProtoReflect() protoreflect.Message

func (*Bot_Captcha) Reset

func (x *Bot_Captcha) Reset()

func (*Bot_Captcha) String

func (x *Bot_Captcha) String() string

type Bot_Captcha_CaptchaType

type Bot_Captcha_CaptchaType int32
const (
	Bot_Captcha_PIC_CAPTCHA                Bot_Captcha_CaptchaType = 0
	Bot_Captcha_SLIDER_CAPTCHA             Bot_Captcha_CaptchaType = 1
	Bot_Captcha_UNSAFE_DEVICE_LOGIN_VERIFY Bot_Captcha_CaptchaType = 2
	Bot_Captcha_SMS                        Bot_Captcha_CaptchaType = 4
)

func (Bot_Captcha_CaptchaType) Descriptor

func (Bot_Captcha_CaptchaType) Enum

func (Bot_Captcha_CaptchaType) EnumDescriptor deprecated

func (Bot_Captcha_CaptchaType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Bot_Captcha_CaptchaType.Descriptor instead.

func (Bot_Captcha_CaptchaType) Number

func (Bot_Captcha_CaptchaType) String

func (x Bot_Captcha_CaptchaType) String() string

func (Bot_Captcha_CaptchaType) Type

type Bot_Captcha_Image

type Bot_Captcha_Image struct {
	Image []byte `protobuf:"bytes,4,opt,name=image,proto3,oneof"`
}

type Bot_Captcha_Url

type Bot_Captcha_Url struct {
	Url string `protobuf:"bytes,3,opt,name=url,proto3,oneof"`
}

type CreateBotReq

type CreateBotReq struct {
	BotId          int64  `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
	Password       string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	DeviceSeed     int64  `protobuf:"varint,3,opt,name=device_seed,json=deviceSeed,proto3" json:"device_seed,omitempty"`             // 设备信息随机种子
	ClientProtocol int32  `protobuf:"varint,4,opt,name=client_protocol,json=clientProtocol,proto3" json:"client_protocol,omitempty"` // 协议类型
	SignServer     string `protobuf:"bytes,5,opt,name=sign_server,json=signServer,proto3" json:"sign_server,omitempty"`
	SignServerAuth string `protobuf:"bytes,6,opt,name=sign_server_auth,json=signServerAuth,proto3" json:"sign_server_auth,omitempty"`
	// contains filtered or unexported fields
}

创建机器人 /bot/create/v1/

func (*CreateBotReq) Descriptor deprecated

func (*CreateBotReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateBotReq.ProtoReflect.Descriptor instead.

func (*CreateBotReq) GetBotId

func (x *CreateBotReq) GetBotId() int64

func (*CreateBotReq) GetClientProtocol

func (x *CreateBotReq) GetClientProtocol() int32

func (*CreateBotReq) GetDeviceSeed

func (x *CreateBotReq) GetDeviceSeed() int64

func (*CreateBotReq) GetPassword

func (x *CreateBotReq) GetPassword() string

func (*CreateBotReq) GetSignServer

func (x *CreateBotReq) GetSignServer() string

func (*CreateBotReq) GetSignServerAuth

func (x *CreateBotReq) GetSignServerAuth() string

func (*CreateBotReq) ProtoMessage

func (*CreateBotReq) ProtoMessage()

func (*CreateBotReq) ProtoReflect

func (x *CreateBotReq) ProtoReflect() protoreflect.Message

func (*CreateBotReq) Reset

func (x *CreateBotReq) Reset()

func (*CreateBotReq) String

func (x *CreateBotReq) String() string

type CreateBotResp

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

func (*CreateBotResp) Descriptor deprecated

func (*CreateBotResp) Descriptor() ([]byte, []int)

Deprecated: Use CreateBotResp.ProtoReflect.Descriptor instead.

func (*CreateBotResp) ProtoMessage

func (*CreateBotResp) ProtoMessage()

func (*CreateBotResp) ProtoReflect

func (x *CreateBotResp) ProtoReflect() protoreflect.Message

func (*CreateBotResp) Reset

func (x *CreateBotResp) Reset()

func (*CreateBotResp) String

func (x *CreateBotResp) String() string

type DeleteBotReq

type DeleteBotReq struct {
	BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
	// contains filtered or unexported fields
}

删除机器人 /bot/delete/v1/

func (*DeleteBotReq) Descriptor deprecated

func (*DeleteBotReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteBotReq.ProtoReflect.Descriptor instead.

func (*DeleteBotReq) GetBotId

func (x *DeleteBotReq) GetBotId() int64

func (*DeleteBotReq) ProtoMessage

func (*DeleteBotReq) ProtoMessage()

func (*DeleteBotReq) ProtoReflect

func (x *DeleteBotReq) ProtoReflect() protoreflect.Message

func (*DeleteBotReq) Reset

func (x *DeleteBotReq) Reset()

func (*DeleteBotReq) String

func (x *DeleteBotReq) String() string

type DeleteBotResp

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

func (*DeleteBotResp) Descriptor deprecated

func (*DeleteBotResp) Descriptor() ([]byte, []int)

Deprecated: Use DeleteBotResp.ProtoReflect.Descriptor instead.

func (*DeleteBotResp) ProtoMessage

func (*DeleteBotResp) ProtoMessage()

func (*DeleteBotResp) ProtoReflect

func (x *DeleteBotResp) ProtoReflect() protoreflect.Message

func (*DeleteBotResp) Reset

func (x *DeleteBotResp) Reset()

func (*DeleteBotResp) String

func (x *DeleteBotResp) String() string

type DeletePluginReq

type DeletePluginReq struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePluginReq) Descriptor deprecated

func (*DeletePluginReq) Descriptor() ([]byte, []int)

Deprecated: Use DeletePluginReq.ProtoReflect.Descriptor instead.

func (*DeletePluginReq) GetName

func (x *DeletePluginReq) GetName() string

func (*DeletePluginReq) ProtoMessage

func (*DeletePluginReq) ProtoMessage()

func (*DeletePluginReq) ProtoReflect

func (x *DeletePluginReq) ProtoReflect() protoreflect.Message

func (*DeletePluginReq) Reset

func (x *DeletePluginReq) Reset()

func (*DeletePluginReq) String

func (x *DeletePluginReq) String() string

type DeletePluginResp

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

func (*DeletePluginResp) Descriptor deprecated

func (*DeletePluginResp) Descriptor() ([]byte, []int)

Deprecated: Use DeletePluginResp.ProtoReflect.Descriptor instead.

func (*DeletePluginResp) ProtoMessage

func (*DeletePluginResp) ProtoMessage()

func (*DeletePluginResp) ProtoReflect

func (x *DeletePluginResp) ProtoReflect() protoreflect.Message

func (*DeletePluginResp) Reset

func (x *DeletePluginResp) Reset()

func (*DeletePluginResp) String

func (x *DeletePluginResp) String() string

type FetchQRCodeReq

type FetchQRCodeReq struct {
	DeviceSeed     int64 `protobuf:"varint,1,opt,name=device_seed,json=deviceSeed,proto3" json:"device_seed,omitempty"`
	ClientProtocol int32 `protobuf:"varint,2,opt,name=client_protocol,json=clientProtocol,proto3" json:"client_protocol,omitempty"` // 协议类型
	// contains filtered or unexported fields
}

获取二维码 /qrcode/fetch/v1/

func (*FetchQRCodeReq) Descriptor deprecated

func (*FetchQRCodeReq) Descriptor() ([]byte, []int)

Deprecated: Use FetchQRCodeReq.ProtoReflect.Descriptor instead.

func (*FetchQRCodeReq) GetClientProtocol

func (x *FetchQRCodeReq) GetClientProtocol() int32

func (*FetchQRCodeReq) GetDeviceSeed

func (x *FetchQRCodeReq) GetDeviceSeed() int64

func (*FetchQRCodeReq) ProtoMessage

func (*FetchQRCodeReq) ProtoMessage()

func (*FetchQRCodeReq) ProtoReflect

func (x *FetchQRCodeReq) ProtoReflect() protoreflect.Message

func (*FetchQRCodeReq) Reset

func (x *FetchQRCodeReq) Reset()

func (*FetchQRCodeReq) String

func (x *FetchQRCodeReq) String() string

type HttpServiceClient

type HttpServiceClient interface {
	CreateBot(ctx context.Context, in *CreateBotReq, opts ...grpc.CallOption) (*CreateBotResp, error)
	DeleteBot(ctx context.Context, in *DeleteBotReq, opts ...grpc.CallOption) (*DeleteBotResp, error)
	ListBot(ctx context.Context, in *ListBotReq, opts ...grpc.CallOption) (*ListBotResp, error)
	SolveCaptcha(ctx context.Context, in *SolveCaptchaReq, opts ...grpc.CallOption) (*SolveCaptchaResp, error)
	FetchQRCode(ctx context.Context, in *FetchQRCodeReq, opts ...grpc.CallOption) (*QRCodeLoginResp, error)
	QueryQRCodeStatus(ctx context.Context, in *QueryQRCodeStatusReq, opts ...grpc.CallOption) (*QRCodeLoginResp, error)
	ListPlugin(ctx context.Context, in *ListPluginReq, opts ...grpc.CallOption) (*ListPluginResp, error)
	SavePlugin(ctx context.Context, in *SavePluginReq, opts ...grpc.CallOption) (*SavePluginResp, error)
	DeletePlugin(ctx context.Context, in *DeletePluginReq, opts ...grpc.CallOption) (*DeletePluginResp, error)
}

HttpServiceClient is the client API for HttpService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type HttpServiceServer

type HttpServiceServer interface {
	CreateBot(context.Context, *CreateBotReq) (*CreateBotResp, error)
	DeleteBot(context.Context, *DeleteBotReq) (*DeleteBotResp, error)
	ListBot(context.Context, *ListBotReq) (*ListBotResp, error)
	SolveCaptcha(context.Context, *SolveCaptchaReq) (*SolveCaptchaResp, error)
	FetchQRCode(context.Context, *FetchQRCodeReq) (*QRCodeLoginResp, error)
	QueryQRCodeStatus(context.Context, *QueryQRCodeStatusReq) (*QRCodeLoginResp, error)
	ListPlugin(context.Context, *ListPluginReq) (*ListPluginResp, error)
	SavePlugin(context.Context, *SavePluginReq) (*SavePluginResp, error)
	DeletePlugin(context.Context, *DeletePluginReq) (*DeletePluginResp, error)
	// contains filtered or unexported methods
}

HttpServiceServer is the server API for HttpService service. All implementations must embed UnimplementedHttpServiceServer for forward compatibility

type ListBotReq

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

查询机器人 /bot/list/v1/

func (*ListBotReq) Descriptor deprecated

func (*ListBotReq) Descriptor() ([]byte, []int)

Deprecated: Use ListBotReq.ProtoReflect.Descriptor instead.

func (*ListBotReq) ProtoMessage

func (*ListBotReq) ProtoMessage()

func (*ListBotReq) ProtoReflect

func (x *ListBotReq) ProtoReflect() protoreflect.Message

func (*ListBotReq) Reset

func (x *ListBotReq) Reset()

func (*ListBotReq) String

func (x *ListBotReq) String() string

type ListBotResp

type ListBotResp struct {
	BotList []*Bot `protobuf:"bytes,1,rep,name=bot_list,json=botList,proto3" json:"bot_list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBotResp) Descriptor deprecated

func (*ListBotResp) Descriptor() ([]byte, []int)

Deprecated: Use ListBotResp.ProtoReflect.Descriptor instead.

func (*ListBotResp) GetBotList

func (x *ListBotResp) GetBotList() []*Bot

func (*ListBotResp) ProtoMessage

func (*ListBotResp) ProtoMessage()

func (*ListBotResp) ProtoReflect

func (x *ListBotResp) ProtoReflect() protoreflect.Message

func (*ListBotResp) Reset

func (x *ListBotResp) Reset()

func (*ListBotResp) String

func (x *ListBotResp) String() string

type ListPluginReq

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

func (*ListPluginReq) Descriptor deprecated

func (*ListPluginReq) Descriptor() ([]byte, []int)

Deprecated: Use ListPluginReq.ProtoReflect.Descriptor instead.

func (*ListPluginReq) ProtoMessage

func (*ListPluginReq) ProtoMessage()

func (*ListPluginReq) ProtoReflect

func (x *ListPluginReq) ProtoReflect() protoreflect.Message

func (*ListPluginReq) Reset

func (x *ListPluginReq) Reset()

func (*ListPluginReq) String

func (x *ListPluginReq) String() string

type ListPluginResp

type ListPluginResp struct {
	Plugins []*Plugin `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPluginResp) Descriptor deprecated

func (*ListPluginResp) Descriptor() ([]byte, []int)

Deprecated: Use ListPluginResp.ProtoReflect.Descriptor instead.

func (*ListPluginResp) GetPlugins

func (x *ListPluginResp) GetPlugins() []*Plugin

func (*ListPluginResp) ProtoMessage

func (*ListPluginResp) ProtoMessage()

func (*ListPluginResp) ProtoReflect

func (x *ListPluginResp) ProtoReflect() protoreflect.Message

func (*ListPluginResp) Reset

func (x *ListPluginResp) Reset()

func (*ListPluginResp) String

func (x *ListPluginResp) String() string

type Plugin

type Plugin struct {
	Name         string           `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Disabled     bool             `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"`
	Json         bool             `protobuf:"varint,3,opt,name=json,proto3" json:"json,omitempty"`
	Urls         []string         `protobuf:"bytes,4,rep,name=urls,proto3" json:"urls,omitempty"`
	EventFilter  []int32          `protobuf:"varint,5,rep,packed,name=event_filter,json=eventFilter,proto3" json:"event_filter,omitempty"`
	ApiFilter    []int32          `protobuf:"varint,6,rep,packed,name=api_filter,json=apiFilter,proto3" json:"api_filter,omitempty"`
	RegexFilter  string           `protobuf:"bytes,7,opt,name=regex_filter,json=regexFilter,proto3" json:"regex_filter,omitempty"`
	RegexReplace string           `protobuf:"bytes,8,opt,name=regex_replace,json=regexReplace,proto3" json:"regex_replace,omitempty"`
	ExtraHeader  []*Plugin_Header `protobuf:"bytes,9,rep,name=extra_header,json=extraHeader,proto3" json:"extra_header,omitempty"`
	// contains filtered or unexported fields
}

func (*Plugin) Descriptor deprecated

func (*Plugin) Descriptor() ([]byte, []int)

Deprecated: Use Plugin.ProtoReflect.Descriptor instead.

func (*Plugin) GetApiFilter

func (x *Plugin) GetApiFilter() []int32

func (*Plugin) GetDisabled

func (x *Plugin) GetDisabled() bool

func (*Plugin) GetEventFilter

func (x *Plugin) GetEventFilter() []int32

func (*Plugin) GetExtraHeader

func (x *Plugin) GetExtraHeader() []*Plugin_Header

func (*Plugin) GetJson

func (x *Plugin) GetJson() bool

func (*Plugin) GetName

func (x *Plugin) GetName() string

func (*Plugin) GetRegexFilter

func (x *Plugin) GetRegexFilter() string

func (*Plugin) GetRegexReplace

func (x *Plugin) GetRegexReplace() string

func (*Plugin) GetUrls

func (x *Plugin) GetUrls() []string

func (*Plugin) ProtoMessage

func (*Plugin) ProtoMessage()

func (*Plugin) ProtoReflect

func (x *Plugin) ProtoReflect() protoreflect.Message

func (*Plugin) Reset

func (x *Plugin) Reset()

func (*Plugin) String

func (x *Plugin) String() string

type Plugin_Header

type Plugin_Header struct {
	Key   string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Plugin_Header) Descriptor deprecated

func (*Plugin_Header) Descriptor() ([]byte, []int)

Deprecated: Use Plugin_Header.ProtoReflect.Descriptor instead.

func (*Plugin_Header) GetKey

func (x *Plugin_Header) GetKey() string

func (*Plugin_Header) GetValue

func (x *Plugin_Header) GetValue() []string

func (*Plugin_Header) ProtoMessage

func (*Plugin_Header) ProtoMessage()

func (*Plugin_Header) ProtoReflect

func (x *Plugin_Header) ProtoReflect() protoreflect.Message

func (*Plugin_Header) Reset

func (x *Plugin_Header) Reset()

func (*Plugin_Header) String

func (x *Plugin_Header) String() string

type QRCodeLoginResp

type QRCodeLoginResp struct {
	State     QRCodeLoginResp_QRCodeLoginState `protobuf:"varint,1,opt,name=state,proto3,enum=dto.QRCodeLoginResp_QRCodeLoginState" json:"state,omitempty"`
	ImageData []byte                           `protobuf:"bytes,2,opt,name=image_data,json=imageData,proto3" json:"image_data,omitempty"`
	Sig       []byte                           `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"`
	// contains filtered or unexported fields
}

二维码登陆响应(获取和查询统一)

func (*QRCodeLoginResp) Descriptor deprecated

func (*QRCodeLoginResp) Descriptor() ([]byte, []int)

Deprecated: Use QRCodeLoginResp.ProtoReflect.Descriptor instead.

func (*QRCodeLoginResp) GetImageData

func (x *QRCodeLoginResp) GetImageData() []byte

func (*QRCodeLoginResp) GetSig

func (x *QRCodeLoginResp) GetSig() []byte

func (*QRCodeLoginResp) GetState

func (*QRCodeLoginResp) ProtoMessage

func (*QRCodeLoginResp) ProtoMessage()

func (*QRCodeLoginResp) ProtoReflect

func (x *QRCodeLoginResp) ProtoReflect() protoreflect.Message

func (*QRCodeLoginResp) Reset

func (x *QRCodeLoginResp) Reset()

func (*QRCodeLoginResp) String

func (x *QRCodeLoginResp) String() string

type QRCodeLoginResp_QRCodeLoginState

type QRCodeLoginResp_QRCodeLoginState int32
const (
	QRCodeLoginResp_Unknown                 QRCodeLoginResp_QRCodeLoginState = 0
	QRCodeLoginResp_QRCodeImageFetch        QRCodeLoginResp_QRCodeLoginState = 1
	QRCodeLoginResp_QRCodeWaitingForScan    QRCodeLoginResp_QRCodeLoginState = 2 // 等待扫描
	QRCodeLoginResp_QRCodeWaitingForConfirm QRCodeLoginResp_QRCodeLoginState = 3 // 扫码成功,请确认登陆
	QRCodeLoginResp_QRCodeTimeout           QRCodeLoginResp_QRCodeLoginState = 4 // 二维码过期
	QRCodeLoginResp_QRCodeConfirmed         QRCodeLoginResp_QRCodeLoginState = 5 // 已确认登陆
	QRCodeLoginResp_QRCodeCanceled          QRCodeLoginResp_QRCodeLoginState = 6 // 扫码被用户取消
)

func (QRCodeLoginResp_QRCodeLoginState) Descriptor

func (QRCodeLoginResp_QRCodeLoginState) Enum

func (QRCodeLoginResp_QRCodeLoginState) EnumDescriptor deprecated

func (QRCodeLoginResp_QRCodeLoginState) EnumDescriptor() ([]byte, []int)

Deprecated: Use QRCodeLoginResp_QRCodeLoginState.Descriptor instead.

func (QRCodeLoginResp_QRCodeLoginState) Number

func (QRCodeLoginResp_QRCodeLoginState) String

func (QRCodeLoginResp_QRCodeLoginState) Type

type QueryQRCodeStatusReq

type QueryQRCodeStatusReq struct {
	Sig   []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"`
	BotId int64  `protobuf:"varint,2,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
	// contains filtered or unexported fields
}

查询二维码状态 /qrcode/query/v1/

func (*QueryQRCodeStatusReq) Descriptor deprecated

func (*QueryQRCodeStatusReq) Descriptor() ([]byte, []int)

Deprecated: Use QueryQRCodeStatusReq.ProtoReflect.Descriptor instead.

func (*QueryQRCodeStatusReq) GetBotId

func (x *QueryQRCodeStatusReq) GetBotId() int64

func (*QueryQRCodeStatusReq) GetSig

func (x *QueryQRCodeStatusReq) GetSig() []byte

func (*QueryQRCodeStatusReq) ProtoMessage

func (*QueryQRCodeStatusReq) ProtoMessage()

func (*QueryQRCodeStatusReq) ProtoReflect

func (x *QueryQRCodeStatusReq) ProtoReflect() protoreflect.Message

func (*QueryQRCodeStatusReq) Reset

func (x *QueryQRCodeStatusReq) Reset()

func (*QueryQRCodeStatusReq) String

func (x *QueryQRCodeStatusReq) String() string

type SavePluginReq

type SavePluginReq struct {
	Plugin *Plugin `protobuf:"bytes,1,opt,name=plugin,proto3" json:"plugin,omitempty"`
	// contains filtered or unexported fields
}

func (*SavePluginReq) Descriptor deprecated

func (*SavePluginReq) Descriptor() ([]byte, []int)

Deprecated: Use SavePluginReq.ProtoReflect.Descriptor instead.

func (*SavePluginReq) GetPlugin

func (x *SavePluginReq) GetPlugin() *Plugin

func (*SavePluginReq) ProtoMessage

func (*SavePluginReq) ProtoMessage()

func (*SavePluginReq) ProtoReflect

func (x *SavePluginReq) ProtoReflect() protoreflect.Message

func (*SavePluginReq) Reset

func (x *SavePluginReq) Reset()

func (*SavePluginReq) String

func (x *SavePluginReq) String() string

type SavePluginResp

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

func (*SavePluginResp) Descriptor deprecated

func (*SavePluginResp) Descriptor() ([]byte, []int)

Deprecated: Use SavePluginResp.ProtoReflect.Descriptor instead.

func (*SavePluginResp) ProtoMessage

func (*SavePluginResp) ProtoMessage()

func (*SavePluginResp) ProtoReflect

func (x *SavePluginResp) ProtoReflect() protoreflect.Message

func (*SavePluginResp) Reset

func (x *SavePluginResp) Reset()

func (*SavePluginResp) String

func (x *SavePluginResp) String() string

type SolveCaptchaReq

type SolveCaptchaReq struct {
	BotId  int64  `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
	Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

处理验证码 /captcha/solve/v1/

func (*SolveCaptchaReq) Descriptor deprecated

func (*SolveCaptchaReq) Descriptor() ([]byte, []int)

Deprecated: Use SolveCaptchaReq.ProtoReflect.Descriptor instead.

func (*SolveCaptchaReq) GetBotId

func (x *SolveCaptchaReq) GetBotId() int64

func (*SolveCaptchaReq) GetResult

func (x *SolveCaptchaReq) GetResult() string

func (*SolveCaptchaReq) ProtoMessage

func (*SolveCaptchaReq) ProtoMessage()

func (*SolveCaptchaReq) ProtoReflect

func (x *SolveCaptchaReq) ProtoReflect() protoreflect.Message

func (*SolveCaptchaReq) Reset

func (x *SolveCaptchaReq) Reset()

func (*SolveCaptchaReq) String

func (x *SolveCaptchaReq) String() string

type SolveCaptchaResp

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

func (*SolveCaptchaResp) Descriptor deprecated

func (*SolveCaptchaResp) Descriptor() ([]byte, []int)

Deprecated: Use SolveCaptchaResp.ProtoReflect.Descriptor instead.

func (*SolveCaptchaResp) ProtoMessage

func (*SolveCaptchaResp) ProtoMessage()

func (*SolveCaptchaResp) ProtoReflect

func (x *SolveCaptchaResp) ProtoReflect() protoreflect.Message

func (*SolveCaptchaResp) Reset

func (x *SolveCaptchaResp) Reset()

func (*SolveCaptchaResp) String

func (x *SolveCaptchaResp) String() string

type UnimplementedHttpServiceServer

type UnimplementedHttpServiceServer struct {
}

UnimplementedHttpServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHttpServiceServer) CreateBot

func (UnimplementedHttpServiceServer) DeleteBot

func (UnimplementedHttpServiceServer) DeletePlugin

func (UnimplementedHttpServiceServer) FetchQRCode

func (UnimplementedHttpServiceServer) ListBot

func (UnimplementedHttpServiceServer) ListPlugin

func (UnimplementedHttpServiceServer) QueryQRCodeStatus

func (UnimplementedHttpServiceServer) SavePlugin

func (UnimplementedHttpServiceServer) SolveCaptcha

type UnsafeHttpServiceServer

type UnsafeHttpServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeHttpServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HttpServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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