invitation_code

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s giraffe_micro.Server, srv Service)

Types

type CheckInvitationCodeRequest

type CheckInvitationCodeRequest struct {
	//
	//邀请码
	Code                 string   `protobuf:"bytes,1,opt,name=code,proto3" json:"code" form:"code"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CheckInvitationCode请求

func (*CheckInvitationCodeRequest) Descriptor

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

func (*CheckInvitationCodeRequest) GetCode

func (m *CheckInvitationCodeRequest) GetCode() string

func (*CheckInvitationCodeRequest) ProtoMessage

func (*CheckInvitationCodeRequest) ProtoMessage()

func (*CheckInvitationCodeRequest) Reset

func (m *CheckInvitationCodeRequest) Reset()

func (*CheckInvitationCodeRequest) String

func (m *CheckInvitationCodeRequest) String() string

func (*CheckInvitationCodeRequest) Validate

func (this *CheckInvitationCodeRequest) Validate() error

func (*CheckInvitationCodeRequest) XXX_DiscardUnknown

func (m *CheckInvitationCodeRequest) XXX_DiscardUnknown()

func (*CheckInvitationCodeRequest) XXX_Marshal

func (m *CheckInvitationCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckInvitationCodeRequest) XXX_Merge

func (m *CheckInvitationCodeRequest) XXX_Merge(src proto.Message)

func (*CheckInvitationCodeRequest) XXX_Size

func (m *CheckInvitationCodeRequest) XXX_Size() int

func (*CheckInvitationCodeRequest) XXX_Unmarshal

func (m *CheckInvitationCodeRequest) XXX_Unmarshal(b []byte) error

type CheckInvitationCodeResponse

type CheckInvitationCodeResponse struct {
	//
	//邀请码
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//org
	Org                  int32    `protobuf:"varint,2,opt,name=org,proto3" json:"org" form:"org"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CheckInvitationCode返回

func (*CheckInvitationCodeResponse) Descriptor

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

func (*CheckInvitationCodeResponse) GetCode

func (m *CheckInvitationCodeResponse) GetCode() string

func (*CheckInvitationCodeResponse) GetOrg

func (m *CheckInvitationCodeResponse) GetOrg() int32

func (*CheckInvitationCodeResponse) ProtoMessage

func (*CheckInvitationCodeResponse) ProtoMessage()

func (*CheckInvitationCodeResponse) Reset

func (m *CheckInvitationCodeResponse) Reset()

func (*CheckInvitationCodeResponse) String

func (m *CheckInvitationCodeResponse) String() string

func (*CheckInvitationCodeResponse) Validate

func (this *CheckInvitationCodeResponse) Validate() error

func (*CheckInvitationCodeResponse) XXX_DiscardUnknown

func (m *CheckInvitationCodeResponse) XXX_DiscardUnknown()

func (*CheckInvitationCodeResponse) XXX_Marshal

func (m *CheckInvitationCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckInvitationCodeResponse) XXX_Merge

func (m *CheckInvitationCodeResponse) XXX_Merge(src proto.Message)

func (*CheckInvitationCodeResponse) XXX_Size

func (m *CheckInvitationCodeResponse) XXX_Size() int

func (*CheckInvitationCodeResponse) XXX_Unmarshal

func (m *CheckInvitationCodeResponse) XXX_Unmarshal(b []byte) error

type CheckInvitationCodeResponseWrapper

type CheckInvitationCodeResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *CheckInvitationCodeResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

CheckInvitationCodeApi返回

func (*CheckInvitationCodeResponseWrapper) Descriptor

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

func (*CheckInvitationCodeResponseWrapper) GetCode

func (*CheckInvitationCodeResponseWrapper) GetCodeExplain

func (m *CheckInvitationCodeResponseWrapper) GetCodeExplain() string

func (*CheckInvitationCodeResponseWrapper) GetData

func (*CheckInvitationCodeResponseWrapper) GetError

func (*CheckInvitationCodeResponseWrapper) ProtoMessage

func (*CheckInvitationCodeResponseWrapper) ProtoMessage()

func (*CheckInvitationCodeResponseWrapper) Reset

func (*CheckInvitationCodeResponseWrapper) String

func (*CheckInvitationCodeResponseWrapper) Validate

func (this *CheckInvitationCodeResponseWrapper) Validate() error

func (*CheckInvitationCodeResponseWrapper) XXX_DiscardUnknown

func (m *CheckInvitationCodeResponseWrapper) XXX_DiscardUnknown()

func (*CheckInvitationCodeResponseWrapper) XXX_Marshal

func (m *CheckInvitationCodeResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckInvitationCodeResponseWrapper) XXX_Merge

func (*CheckInvitationCodeResponseWrapper) XXX_Size

func (*CheckInvitationCodeResponseWrapper) XXX_Unmarshal

func (m *CheckInvitationCodeResponseWrapper) XXX_Unmarshal(b []byte) error

type Client

type Client interface {
	CheckInvitationCode(ctx context.Context, in *CheckInvitationCodeRequest) (*CheckInvitationCodeResponse, error)
	GetInvitationCode(ctx context.Context, in *types.Empty) (*GetInvitationCodeResponse, error)
	ResetInvitationCode(ctx context.Context, in *types.Empty) (*ResetInvitationCodeResponse, error)
}

Client is the client API for invitation_code service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewClient

func NewClient(c giraffe_micro.Client) Client

type GetInvitationCodeResponse

type GetInvitationCodeResponse struct {
	//
	//邀请码
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//org
	Org int32 `protobuf:"varint,2,opt,name=org,proto3" json:"org" form:"org"`
	//
	//过期时间
	Expires string `protobuf:"bytes,3,opt,name=expires,proto3" json:"expires" form:"expires"`
	//
	//是否可用
	State                string   `protobuf:"bytes,4,opt,name=state,proto3" json:"state" form:"state"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetInvitationCode返回

func (*GetInvitationCodeResponse) Descriptor

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

func (*GetInvitationCodeResponse) GetCode

func (m *GetInvitationCodeResponse) GetCode() string

func (*GetInvitationCodeResponse) GetExpires

func (m *GetInvitationCodeResponse) GetExpires() string

func (*GetInvitationCodeResponse) GetOrg

func (m *GetInvitationCodeResponse) GetOrg() int32

func (*GetInvitationCodeResponse) GetState

func (m *GetInvitationCodeResponse) GetState() string

func (*GetInvitationCodeResponse) ProtoMessage

func (*GetInvitationCodeResponse) ProtoMessage()

func (*GetInvitationCodeResponse) Reset

func (m *GetInvitationCodeResponse) Reset()

func (*GetInvitationCodeResponse) String

func (m *GetInvitationCodeResponse) String() string

func (*GetInvitationCodeResponse) Validate

func (this *GetInvitationCodeResponse) Validate() error

func (*GetInvitationCodeResponse) XXX_DiscardUnknown

func (m *GetInvitationCodeResponse) XXX_DiscardUnknown()

func (*GetInvitationCodeResponse) XXX_Marshal

func (m *GetInvitationCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetInvitationCodeResponse) XXX_Merge

func (m *GetInvitationCodeResponse) XXX_Merge(src proto.Message)

func (*GetInvitationCodeResponse) XXX_Size

func (m *GetInvitationCodeResponse) XXX_Size() int

func (*GetInvitationCodeResponse) XXX_Unmarshal

func (m *GetInvitationCodeResponse) XXX_Unmarshal(b []byte) error

type GetInvitationCodeResponseWrapper

type GetInvitationCodeResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *GetInvitationCodeResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

GetInvitationCodeApi返回

func (*GetInvitationCodeResponseWrapper) Descriptor

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

func (*GetInvitationCodeResponseWrapper) GetCode

func (*GetInvitationCodeResponseWrapper) GetCodeExplain

func (m *GetInvitationCodeResponseWrapper) GetCodeExplain() string

func (*GetInvitationCodeResponseWrapper) GetData

func (*GetInvitationCodeResponseWrapper) GetError

func (*GetInvitationCodeResponseWrapper) ProtoMessage

func (*GetInvitationCodeResponseWrapper) ProtoMessage()

func (*GetInvitationCodeResponseWrapper) Reset

func (*GetInvitationCodeResponseWrapper) String

func (*GetInvitationCodeResponseWrapper) Validate

func (this *GetInvitationCodeResponseWrapper) Validate() error

func (*GetInvitationCodeResponseWrapper) XXX_DiscardUnknown

func (m *GetInvitationCodeResponseWrapper) XXX_DiscardUnknown()

func (*GetInvitationCodeResponseWrapper) XXX_Marshal

func (m *GetInvitationCodeResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetInvitationCodeResponseWrapper) XXX_Merge

func (*GetInvitationCodeResponseWrapper) XXX_Size

func (m *GetInvitationCodeResponseWrapper) XXX_Size() int

func (*GetInvitationCodeResponseWrapper) XXX_Unmarshal

func (m *GetInvitationCodeResponseWrapper) XXX_Unmarshal(b []byte) error

type ResetInvitationCodeResponse

type ResetInvitationCodeResponse struct {
	//
	//邀请码
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//org
	Org int32 `protobuf:"varint,2,opt,name=org,proto3" json:"org" form:"org"`
	//
	//过期时间
	Expires string `protobuf:"bytes,3,opt,name=expires,proto3" json:"expires" form:"expires"`
	//
	//是否可用
	State                string   `protobuf:"bytes,4,opt,name=state,proto3" json:"state" form:"state"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ResetInvitationCode返回

func (*ResetInvitationCodeResponse) Descriptor

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

func (*ResetInvitationCodeResponse) GetCode

func (m *ResetInvitationCodeResponse) GetCode() string

func (*ResetInvitationCodeResponse) GetExpires

func (m *ResetInvitationCodeResponse) GetExpires() string

func (*ResetInvitationCodeResponse) GetOrg

func (m *ResetInvitationCodeResponse) GetOrg() int32

func (*ResetInvitationCodeResponse) GetState

func (m *ResetInvitationCodeResponse) GetState() string

func (*ResetInvitationCodeResponse) ProtoMessage

func (*ResetInvitationCodeResponse) ProtoMessage()

func (*ResetInvitationCodeResponse) Reset

func (m *ResetInvitationCodeResponse) Reset()

func (*ResetInvitationCodeResponse) String

func (m *ResetInvitationCodeResponse) String() string

func (*ResetInvitationCodeResponse) Validate

func (this *ResetInvitationCodeResponse) Validate() error

func (*ResetInvitationCodeResponse) XXX_DiscardUnknown

func (m *ResetInvitationCodeResponse) XXX_DiscardUnknown()

func (*ResetInvitationCodeResponse) XXX_Marshal

func (m *ResetInvitationCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResetInvitationCodeResponse) XXX_Merge

func (m *ResetInvitationCodeResponse) XXX_Merge(src proto.Message)

func (*ResetInvitationCodeResponse) XXX_Size

func (m *ResetInvitationCodeResponse) XXX_Size() int

func (*ResetInvitationCodeResponse) XXX_Unmarshal

func (m *ResetInvitationCodeResponse) XXX_Unmarshal(b []byte) error

type ResetInvitationCodeResponseWrapper

type ResetInvitationCodeResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *ResetInvitationCodeResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

ResetInvitationCodeApi返回

func (*ResetInvitationCodeResponseWrapper) Descriptor

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

func (*ResetInvitationCodeResponseWrapper) GetCode

func (*ResetInvitationCodeResponseWrapper) GetCodeExplain

func (m *ResetInvitationCodeResponseWrapper) GetCodeExplain() string

func (*ResetInvitationCodeResponseWrapper) GetData

func (*ResetInvitationCodeResponseWrapper) GetError

func (*ResetInvitationCodeResponseWrapper) ProtoMessage

func (*ResetInvitationCodeResponseWrapper) ProtoMessage()

func (*ResetInvitationCodeResponseWrapper) Reset

func (*ResetInvitationCodeResponseWrapper) String

func (*ResetInvitationCodeResponseWrapper) Validate

func (this *ResetInvitationCodeResponseWrapper) Validate() error

func (*ResetInvitationCodeResponseWrapper) XXX_DiscardUnknown

func (m *ResetInvitationCodeResponseWrapper) XXX_DiscardUnknown()

func (*ResetInvitationCodeResponseWrapper) XXX_Marshal

func (m *ResetInvitationCodeResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResetInvitationCodeResponseWrapper) XXX_Merge

func (*ResetInvitationCodeResponseWrapper) XXX_Size

func (*ResetInvitationCodeResponseWrapper) XXX_Unmarshal

func (m *ResetInvitationCodeResponseWrapper) XXX_Unmarshal(b []byte) error

type Service

type Service interface {
	CheckInvitationCode(context.Context, *CheckInvitationCodeRequest) (*CheckInvitationCodeResponse, error)
	GetInvitationCode(context.Context, *types.Empty) (*GetInvitationCodeResponse, error)
	ResetInvitationCode(context.Context, *types.Empty) (*ResetInvitationCodeResponse, error)
}

Service is the server API for invitation_code service.

Jump to

Keyboard shortcuts

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