dto

package
v0.0.0-...-0dd6052 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpService_Login_FullMethodName                      = "/dto.HttpService/Login"
	HttpService_Logout_FullMethodName                     = "/dto.HttpService/Logout"
	HttpService_GetShopItemAll_FullMethodName             = "/dto.HttpService/GetShopItemAll"
	HttpService_DeleteShopItem_FullMethodName             = "/dto.HttpService/DeleteShopItem"
	HttpService_AddAndUpdateShopItemByItem_FullMethodName = "/dto.HttpService/AddAndUpdateShopItemByItem"
)

Variables

View Source
var HttpService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dto.HttpService",
	HandlerType: (*HttpServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _HttpService_Login_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _HttpService_Logout_Handler,
		},
		{
			MethodName: "GetShopItemAll",
			Handler:    _HttpService_GetShopItemAll_Handler,
		},
		{
			MethodName: "DeleteShopItem",
			Handler:    _HttpService_DeleteShopItem_Handler,
		},
		{
			MethodName: "AddAndUpdateShopItemByItem",
			Handler:    _HttpService_AddAndUpdateShopItemByItem_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "http.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 AddAndUpdateShopItemByItemReq

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

func (*AddAndUpdateShopItemByItemReq) Descriptor deprecated

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

Deprecated: Use AddAndUpdateShopItemByItemReq.ProtoReflect.Descriptor instead.

func (*AddAndUpdateShopItemByItemReq) GetItem

func (x *AddAndUpdateShopItemByItemReq) GetItem() *Item

func (*AddAndUpdateShopItemByItemReq) ProtoMessage

func (*AddAndUpdateShopItemByItemReq) ProtoMessage()

func (*AddAndUpdateShopItemByItemReq) ProtoReflect

func (*AddAndUpdateShopItemByItemReq) Reset

func (x *AddAndUpdateShopItemByItemReq) Reset()

func (*AddAndUpdateShopItemByItemReq) String

type AddAndUpdateShopItemByItemResp

type AddAndUpdateShopItemByItemResp struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Id   int64  `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddAndUpdateShopItemByItemResp) Descriptor deprecated

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

Deprecated: Use AddAndUpdateShopItemByItemResp.ProtoReflect.Descriptor instead.

func (*AddAndUpdateShopItemByItemResp) GetCode

func (*AddAndUpdateShopItemByItemResp) GetId

func (*AddAndUpdateShopItemByItemResp) GetMsg

func (*AddAndUpdateShopItemByItemResp) ProtoMessage

func (*AddAndUpdateShopItemByItemResp) ProtoMessage()

func (*AddAndUpdateShopItemByItemResp) ProtoReflect

func (*AddAndUpdateShopItemByItemResp) Reset

func (x *AddAndUpdateShopItemByItemResp) Reset()

func (*AddAndUpdateShopItemByItemResp) String

type CodeLoginReq

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

func (*CodeLoginReq) Descriptor deprecated

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

Deprecated: Use CodeLoginReq.ProtoReflect.Descriptor instead.

func (*CodeLoginReq) GetCode

func (x *CodeLoginReq) GetCode() string

func (*CodeLoginReq) ProtoMessage

func (*CodeLoginReq) ProtoMessage()

func (*CodeLoginReq) ProtoReflect

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

func (*CodeLoginReq) Reset

func (x *CodeLoginReq) Reset()

func (*CodeLoginReq) String

func (x *CodeLoginReq) String() string

type CodeLoginResp

type CodeLoginResp struct {
	Code         int32     `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg          string    `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Token        string    `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	RefreshToken string    `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	UserInfo     *UserInfo `protobuf:"bytes,5,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"`
	// contains filtered or unexported fields
}

func (*CodeLoginResp) Descriptor deprecated

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

Deprecated: Use CodeLoginResp.ProtoReflect.Descriptor instead.

func (*CodeLoginResp) GetCode

func (x *CodeLoginResp) GetCode() int32

func (*CodeLoginResp) GetMsg

func (x *CodeLoginResp) GetMsg() string

func (*CodeLoginResp) GetRefreshToken

func (x *CodeLoginResp) GetRefreshToken() string

func (*CodeLoginResp) GetToken

func (x *CodeLoginResp) GetToken() string

func (*CodeLoginResp) GetUserInfo

func (x *CodeLoginResp) GetUserInfo() *UserInfo

func (*CodeLoginResp) ProtoMessage

func (*CodeLoginResp) ProtoMessage()

func (*CodeLoginResp) ProtoReflect

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

func (*CodeLoginResp) Reset

func (x *CodeLoginResp) Reset()

func (*CodeLoginResp) String

func (x *CodeLoginResp) String() string

type DeleteShopItemReq

type DeleteShopItemReq struct {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Item string `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteShopItemReq) Descriptor deprecated

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

Deprecated: Use DeleteShopItemReq.ProtoReflect.Descriptor instead.

func (*DeleteShopItemReq) GetId

func (x *DeleteShopItemReq) GetId() int64

func (*DeleteShopItemReq) GetItem

func (x *DeleteShopItemReq) GetItem() string

func (*DeleteShopItemReq) ProtoMessage

func (*DeleteShopItemReq) ProtoMessage()

func (*DeleteShopItemReq) ProtoReflect

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

func (*DeleteShopItemReq) Reset

func (x *DeleteShopItemReq) Reset()

func (*DeleteShopItemReq) String

func (x *DeleteShopItemReq) String() string

type DeleteShopItemResp

type DeleteShopItemResp struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteShopItemResp) Descriptor deprecated

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

Deprecated: Use DeleteShopItemResp.ProtoReflect.Descriptor instead.

func (*DeleteShopItemResp) GetCode

func (x *DeleteShopItemResp) GetCode() int32

func (*DeleteShopItemResp) GetMsg

func (x *DeleteShopItemResp) GetMsg() string

func (*DeleteShopItemResp) ProtoMessage

func (*DeleteShopItemResp) ProtoMessage()

func (*DeleteShopItemResp) ProtoReflect

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

func (*DeleteShopItemResp) Reset

func (x *DeleteShopItemResp) Reset()

func (*DeleteShopItemResp) String

func (x *DeleteShopItemResp) String() string

type GetShopItemAllReq

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

func (*GetShopItemAllReq) Descriptor deprecated

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

Deprecated: Use GetShopItemAllReq.ProtoReflect.Descriptor instead.

func (*GetShopItemAllReq) ProtoMessage

func (*GetShopItemAllReq) ProtoMessage()

func (*GetShopItemAllReq) ProtoReflect

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

func (*GetShopItemAllReq) Reset

func (x *GetShopItemAllReq) Reset()

func (*GetShopItemAllReq) String

func (x *GetShopItemAllReq) String() string

type GetShopItemAllResp

type GetShopItemAllResp struct {
	Code     int32   `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg      string  `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Store    []*Item `protobuf:"bytes,3,rep,name=store,proto3" json:"store,omitempty"`
	ShopName string  `protobuf:"bytes,4,opt,name=shop_name,json=shopName,proto3" json:"shop_name,omitempty"`
	QqGuild  string  `protobuf:"bytes,5,opt,name=qq_guild,json=qqGuild,proto3" json:"qq_guild,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShopItemAllResp) Descriptor deprecated

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

Deprecated: Use GetShopItemAllResp.ProtoReflect.Descriptor instead.

func (*GetShopItemAllResp) GetCode

func (x *GetShopItemAllResp) GetCode() int32

func (*GetShopItemAllResp) GetMsg

func (x *GetShopItemAllResp) GetMsg() string

func (*GetShopItemAllResp) GetQqGuild

func (x *GetShopItemAllResp) GetQqGuild() string

func (*GetShopItemAllResp) GetShopName

func (x *GetShopItemAllResp) GetShopName() string

func (*GetShopItemAllResp) GetStore

func (x *GetShopItemAllResp) GetStore() []*Item

func (*GetShopItemAllResp) ProtoMessage

func (*GetShopItemAllResp) ProtoMessage()

func (*GetShopItemAllResp) ProtoReflect

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

func (*GetShopItemAllResp) Reset

func (x *GetShopItemAllResp) Reset()

func (*GetShopItemAllResp) String

func (x *GetShopItemAllResp) String() string

type HttpServiceClient

type HttpServiceClient interface {
	Login(ctx context.Context, in *CodeLoginReq, opts ...grpc.CallOption) (*CodeLoginResp, error)
	Logout(ctx context.Context, in *LogoutReq, opts ...grpc.CallOption) (*LogoutResp, error)
	GetShopItemAll(ctx context.Context, in *GetShopItemAllReq, opts ...grpc.CallOption) (*GetShopItemAllResp, error)
	DeleteShopItem(ctx context.Context, in *DeleteShopItemReq, opts ...grpc.CallOption) (*DeleteShopItemResp, error)
	AddAndUpdateShopItemByItem(ctx context.Context, in *AddAndUpdateShopItemByItemReq, opts ...grpc.CallOption) (*AddAndUpdateShopItemByItemResp, 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 {
	Login(context.Context, *CodeLoginReq) (*CodeLoginResp, error)
	Logout(context.Context, *LogoutReq) (*LogoutResp, error)
	GetShopItemAll(context.Context, *GetShopItemAllReq) (*GetShopItemAllResp, error)
	DeleteShopItem(context.Context, *DeleteShopItemReq) (*DeleteShopItemResp, error)
	AddAndUpdateShopItemByItem(context.Context, *AddAndUpdateShopItemByItemReq) (*AddAndUpdateShopItemByItemResp, error)
	// contains filtered or unexported methods
}

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

type Item

type Item struct {
	Id            int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	GuildId       string `protobuf:"bytes,2,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"`
	ChannelId     string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	Brand         string `protobuf:"bytes,4,opt,name=brand,proto3" json:"brand,omitempty"`
	Item          string `protobuf:"bytes,5,opt,name=item,proto3" json:"item,omitempty"`
	Price         string `protobuf:"bytes,6,opt,name=price,proto3" json:"price,omitempty"`
	Shipping      string `protobuf:"bytes,7,opt,name=shipping,proto3" json:"shipping,omitempty"`
	Updater       string `protobuf:"bytes,8,opt,name=updater,proto3" json:"updater,omitempty"`
	GmtModified   int64  `protobuf:"varint,9,opt,name=gmt_modified,json=gmtModified,proto3" json:"gmt_modified,omitempty"`
	IsMagnetism   bool   `protobuf:"varint,10,opt,name=is_magnetism,json=isMagnetism,proto3" json:"is_magnetism,omitempty"`
	MagnetismType string `protobuf:"bytes,11,opt,name=magnetism_type,json=magnetismType,proto3" json:"magnetism_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetBrand

func (x *Item) GetBrand() string

func (*Item) GetChannelId

func (x *Item) GetChannelId() string

func (*Item) GetGmtModified

func (x *Item) GetGmtModified() int64

func (*Item) GetGuildId

func (x *Item) GetGuildId() string

func (*Item) GetId

func (x *Item) GetId() int64

func (*Item) GetIsMagnetism

func (x *Item) GetIsMagnetism() bool

func (*Item) GetItem

func (x *Item) GetItem() string

func (*Item) GetMagnetismType

func (x *Item) GetMagnetismType() string

func (*Item) GetPrice

func (x *Item) GetPrice() string

func (*Item) GetShipping

func (x *Item) GetShipping() string

func (*Item) GetUpdater

func (x *Item) GetUpdater() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

type LogoutReq

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

func (*LogoutReq) Descriptor deprecated

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

Deprecated: Use LogoutReq.ProtoReflect.Descriptor instead.

func (*LogoutReq) GetUserId

func (x *LogoutReq) GetUserId() string

func (*LogoutReq) ProtoMessage

func (*LogoutReq) ProtoMessage()

func (*LogoutReq) ProtoReflect

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

func (*LogoutReq) Reset

func (x *LogoutReq) Reset()

func (*LogoutReq) String

func (x *LogoutReq) String() string

type LogoutResp

type LogoutResp struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*LogoutResp) Descriptor deprecated

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

Deprecated: Use LogoutResp.ProtoReflect.Descriptor instead.

func (*LogoutResp) GetCode

func (x *LogoutResp) GetCode() int32

func (*LogoutResp) GetMsg

func (x *LogoutResp) GetMsg() string

func (*LogoutResp) ProtoMessage

func (*LogoutResp) ProtoMessage()

func (*LogoutResp) ProtoReflect

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

func (*LogoutResp) Reset

func (x *LogoutResp) Reset()

func (*LogoutResp) String

func (x *LogoutResp) String() string

type UnimplementedHttpServiceServer

type UnimplementedHttpServiceServer struct {
}

UnimplementedHttpServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHttpServiceServer) DeleteShopItem

func (UnimplementedHttpServiceServer) GetShopItemAll

func (UnimplementedHttpServiceServer) Login

func (UnimplementedHttpServiceServer) Logout

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.

type UserInfo

type UserInfo struct {
	UserId        string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserName      string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	UserRole      int32  `protobuf:"varint,3,opt,name=user_role,json=userRole,proto3" json:"user_role,omitempty"`
	UserAvatar    string `protobuf:"bytes,4,opt,name=user_avatar,json=userAvatar,proto3" json:"user_avatar,omitempty"`
	ServerNumber  string `protobuf:"bytes,5,opt,name=server_number,json=serverNumber,proto3" json:"server_number,omitempty"`
	Email         string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
	QqUnionId     string `protobuf:"bytes,7,opt,name=qq_union_id,json=qqUnionId,proto3" json:"qq_union_id,omitempty"`
	WeixinUnionId string `protobuf:"bytes,8,opt,name=weixin_union_id,json=weixinUnionId,proto3" json:"weixin_union_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

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

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetEmail

func (x *UserInfo) GetEmail() string

func (*UserInfo) GetQqUnionId

func (x *UserInfo) GetQqUnionId() string

func (*UserInfo) GetServerNumber

func (x *UserInfo) GetServerNumber() string

func (*UserInfo) GetUserAvatar

func (x *UserInfo) GetUserAvatar() string

func (*UserInfo) GetUserId

func (x *UserInfo) GetUserId() string

func (*UserInfo) GetUserName

func (x *UserInfo) GetUserName() string

func (*UserInfo) GetUserRole

func (x *UserInfo) GetUserRole() int32

func (*UserInfo) GetWeixinUnionId

func (x *UserInfo) GetWeixinUnionId() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

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

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

Jump to

Keyboard shortcuts

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