Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCAKEServiceHTTPServer(s *http.Server, srv CAKEServiceHTTPServer)
- func RegisterCAKEServiceServer(s grpc.ServiceRegistrar, srv CAKEServiceServer)
- type BuyCardRequest
- type BuyCardResponse
- type CAKEServiceClient
- type CAKEServiceHTTPClient
- type CAKEServiceHTTPClientImpl
- func (c *CAKEServiceHTTPClientImpl) CreateCampaign(ctx context.Context, in *CreateCampaignRequest, opts ...http.CallOption) (*CreateCampaignResponse, error)
- func (c *CAKEServiceHTTPClientImpl) CreateVoucher(ctx context.Context, in *CreateVoucherRequest, opts ...http.CallOption) (*CreateVoucherResponse, error)
- func (c *CAKEServiceHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginResponse, error)
- func (c *CAKEServiceHTTPClientImpl) Register(ctx context.Context, in *RegisterNewAccountRequest, opts ...http.CallOption) (*RegisterNewAccountResponse, error)
- type CAKEServiceHTTPServer
- type CAKEServiceServer
- type CreateCampaignRequest
- func (*CreateCampaignRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCampaignRequest) GetEndDay() int64
- func (x *CreateCampaignRequest) GetName() string
- func (x *CreateCampaignRequest) GetStartDay() int64
- func (x *CreateCampaignRequest) GetTotalSlot() int64
- func (x *CreateCampaignRequest) GetVouchers() []*CreateCampaignRequest_Data
- func (*CreateCampaignRequest) ProtoMessage()
- func (x *CreateCampaignRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCampaignRequest) Reset()
- func (x *CreateCampaignRequest) String() string
- type CreateCampaignRequest_Data
- func (*CreateCampaignRequest_Data) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCampaignRequest_Data) GetVoucherId() int32
- func (*CreateCampaignRequest_Data) ProtoMessage()
- func (x *CreateCampaignRequest_Data) ProtoReflect() protoreflect.Message
- func (x *CreateCampaignRequest_Data) Reset()
- func (x *CreateCampaignRequest_Data) String() string
- type CreateCampaignResponse
- func (*CreateCampaignResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCampaignResponse) GetData() *CreateCampaignResponse_Data
- func (x *CreateCampaignResponse) GetMessage() string
- func (x *CreateCampaignResponse) GetMsgKey() string
- func (x *CreateCampaignResponse) GetStatus() int32
- func (*CreateCampaignResponse) ProtoMessage()
- func (x *CreateCampaignResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCampaignResponse) Reset()
- func (x *CreateCampaignResponse) String() string
- type CreateCampaignResponse_Data
- func (*CreateCampaignResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCampaignResponse_Data) GetId() int64
- func (*CreateCampaignResponse_Data) ProtoMessage()
- func (x *CreateCampaignResponse_Data) ProtoReflect() protoreflect.Message
- func (x *CreateCampaignResponse_Data) Reset()
- func (x *CreateCampaignResponse_Data) String() string
- type CreateVoucherRequest
- func (*CreateVoucherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVoucherRequest) GetName() string
- func (x *CreateVoucherRequest) GetType() string
- func (x *CreateVoucherRequest) GetValue() float32
- func (*CreateVoucherRequest) ProtoMessage()
- func (x *CreateVoucherRequest) ProtoReflect() protoreflect.Message
- func (x *CreateVoucherRequest) Reset()
- func (x *CreateVoucherRequest) String() string
- type CreateVoucherResponse
- func (*CreateVoucherResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVoucherResponse) GetMessage() string
- func (x *CreateVoucherResponse) GetMsgKey() string
- func (x *CreateVoucherResponse) GetStatus() int64
- func (*CreateVoucherResponse) ProtoMessage()
- func (x *CreateVoucherResponse) ProtoReflect() protoreflect.Message
- func (x *CreateVoucherResponse) Reset()
- func (x *CreateVoucherResponse) String() string
- type GetUserVoucherRequest
- func (*GetUserVoucherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserVoucherRequest) GetUserId() string
- func (*GetUserVoucherRequest) ProtoMessage()
- func (x *GetUserVoucherRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserVoucherRequest) Reset()
- func (x *GetUserVoucherRequest) String() string
- type GetUserVoucherResponse
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUserName() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetData() *LoginResponse_Data
- func (x *LoginResponse) GetMessage() string
- func (x *LoginResponse) GetMsgKey() string
- func (x *LoginResponse) GetStatus() int32
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type LoginResponse_Data
- func (*LoginResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse_Data) GetToken() string
- func (*LoginResponse_Data) ProtoMessage()
- func (x *LoginResponse_Data) ProtoReflect() protoreflect.Message
- func (x *LoginResponse_Data) Reset()
- func (x *LoginResponse_Data) String() string
- type RegisterNewAccountRequest
- func (*RegisterNewAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterNewAccountRequest) GetAccount() string
- func (x *RegisterNewAccountRequest) GetBirthday() int64
- func (x *RegisterNewAccountRequest) GetEmail() string
- func (x *RegisterNewAccountRequest) GetFullName() string
- func (x *RegisterNewAccountRequest) GetPassword() string
- func (x *RegisterNewAccountRequest) GetPhoneNumber() string
- func (x *RegisterNewAccountRequest) GetUserName() string
- func (*RegisterNewAccountRequest) ProtoMessage()
- func (x *RegisterNewAccountRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterNewAccountRequest) Reset()
- func (x *RegisterNewAccountRequest) String() string
- type RegisterNewAccountResponse
- func (*RegisterNewAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterNewAccountResponse) GetData() *RegisterNewAccountResponse_Data
- func (x *RegisterNewAccountResponse) GetMessage() string
- func (x *RegisterNewAccountResponse) GetMsgKey() string
- func (x *RegisterNewAccountResponse) GetStatus() int32
- func (*RegisterNewAccountResponse) ProtoMessage()
- func (x *RegisterNewAccountResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterNewAccountResponse) Reset()
- func (x *RegisterNewAccountResponse) String() string
- type RegisterNewAccountResponse_Data
- func (*RegisterNewAccountResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterNewAccountResponse_Data) GetToken() string
- func (*RegisterNewAccountResponse_Data) ProtoMessage()
- func (x *RegisterNewAccountResponse_Data) ProtoReflect() protoreflect.Message
- func (x *RegisterNewAccountResponse_Data) Reset()
- func (x *RegisterNewAccountResponse_Data) String() string
- type UnimplementedCAKEServiceServer
- func (UnimplementedCAKEServiceServer) CreateCampaign(context.Context, *CreateCampaignRequest) (*CreateCampaignResponse, error)
- func (UnimplementedCAKEServiceServer) CreateVoucher(context.Context, *CreateVoucherRequest) (*CreateVoucherResponse, error)
- func (UnimplementedCAKEServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedCAKEServiceServer) Register(context.Context, *RegisterNewAccountRequest) (*RegisterNewAccountResponse, error)
- type UnsafeCAKEServiceServer
Constants ¶
const ( CAKEService_Register_FullMethodName = "/CAKEService/Register" CAKEService_Login_FullMethodName = "/CAKEService/Login" CAKEService_CreateVoucher_FullMethodName = "/CAKEService/CreateVoucher" CAKEService_CreateCampaign_FullMethodName = "/CAKEService/CreateCampaign" )
const OperationCAKEServiceCreateCampaign = "/CAKEService/CreateCampaign"
const OperationCAKEServiceCreateVoucher = "/CAKEService/CreateVoucher"
const OperationCAKEServiceLogin = "/CAKEService/Login"
const OperationCAKEServiceRegister = "/CAKEService/Register"
Variables ¶
var CAKEService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "CAKEService", HandlerType: (*CAKEServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _CAKEService_Register_Handler, }, { MethodName: "Login", Handler: _CAKEService_Login_Handler, }, { MethodName: "CreateVoucher", Handler: _CAKEService_CreateVoucher_Handler, }, { MethodName: "CreateCampaign", Handler: _CAKEService_CreateCampaign_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "server/api.proto", }
CAKEService_ServiceDesc is the grpc.ServiceDesc for CAKEService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_server_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCAKEServiceHTTPServer ¶
func RegisterCAKEServiceHTTPServer(s *http.Server, srv CAKEServiceHTTPServer)
func RegisterCAKEServiceServer ¶
func RegisterCAKEServiceServer(s grpc.ServiceRegistrar, srv CAKEServiceServer)
Types ¶
type BuyCardRequest ¶
type BuyCardRequest struct {
// contains filtered or unexported fields
}
Pay A Card
func (*BuyCardRequest) Descriptor
deprecated
func (*BuyCardRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuyCardRequest.ProtoReflect.Descriptor instead.
func (*BuyCardRequest) ProtoMessage ¶
func (*BuyCardRequest) ProtoMessage()
func (*BuyCardRequest) ProtoReflect ¶
func (x *BuyCardRequest) ProtoReflect() protoreflect.Message
func (*BuyCardRequest) Reset ¶
func (x *BuyCardRequest) Reset()
func (*BuyCardRequest) String ¶
func (x *BuyCardRequest) String() string
type BuyCardResponse ¶
type BuyCardResponse struct {
// contains filtered or unexported fields
}
func (*BuyCardResponse) Descriptor
deprecated
func (*BuyCardResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuyCardResponse.ProtoReflect.Descriptor instead.
func (*BuyCardResponse) ProtoMessage ¶
func (*BuyCardResponse) ProtoMessage()
func (*BuyCardResponse) ProtoReflect ¶
func (x *BuyCardResponse) ProtoReflect() protoreflect.Message
func (*BuyCardResponse) Reset ¶
func (x *BuyCardResponse) Reset()
func (*BuyCardResponse) String ¶
func (x *BuyCardResponse) String() string
type CAKEServiceClient ¶
type CAKEServiceClient interface { // Sends a greeting Register(ctx context.Context, in *RegisterNewAccountRequest, opts ...grpc.CallOption) (*RegisterNewAccountResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) // Internal api CreateVoucher(ctx context.Context, in *CreateVoucherRequest, opts ...grpc.CallOption) (*CreateVoucherResponse, error) CreateCampaign(ctx context.Context, in *CreateCampaignRequest, opts ...grpc.CallOption) (*CreateCampaignResponse, error) }
CAKEServiceClient is the client API for CAKEService 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.
func NewCAKEServiceClient ¶
func NewCAKEServiceClient(cc grpc.ClientConnInterface) CAKEServiceClient
type CAKEServiceHTTPClient ¶
type CAKEServiceHTTPClient interface { CreateCampaign(ctx context.Context, req *CreateCampaignRequest, opts ...http.CallOption) (rsp *CreateCampaignResponse, err error) CreateVoucher(ctx context.Context, req *CreateVoucherRequest, opts ...http.CallOption) (rsp *CreateVoucherResponse, err error) Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginResponse, err error) Register(ctx context.Context, req *RegisterNewAccountRequest, opts ...http.CallOption) (rsp *RegisterNewAccountResponse, err error) }
func NewCAKEServiceHTTPClient ¶
func NewCAKEServiceHTTPClient(client *http.Client) CAKEServiceHTTPClient
type CAKEServiceHTTPClientImpl ¶
type CAKEServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*CAKEServiceHTTPClientImpl) CreateCampaign ¶
func (c *CAKEServiceHTTPClientImpl) CreateCampaign(ctx context.Context, in *CreateCampaignRequest, opts ...http.CallOption) (*CreateCampaignResponse, error)
func (*CAKEServiceHTTPClientImpl) CreateVoucher ¶
func (c *CAKEServiceHTTPClientImpl) CreateVoucher(ctx context.Context, in *CreateVoucherRequest, opts ...http.CallOption) (*CreateVoucherResponse, error)
func (*CAKEServiceHTTPClientImpl) Login ¶
func (c *CAKEServiceHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginResponse, error)
func (*CAKEServiceHTTPClientImpl) Register ¶
func (c *CAKEServiceHTTPClientImpl) Register(ctx context.Context, in *RegisterNewAccountRequest, opts ...http.CallOption) (*RegisterNewAccountResponse, error)
type CAKEServiceHTTPServer ¶
type CAKEServiceHTTPServer interface { CreateCampaign(context.Context, *CreateCampaignRequest) (*CreateCampaignResponse, error) // CreateVoucher Internal api CreateVoucher(context.Context, *CreateVoucherRequest) (*CreateVoucherResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) // Register Sends a greeting Register(context.Context, *RegisterNewAccountRequest) (*RegisterNewAccountResponse, error) }
type CAKEServiceServer ¶
type CAKEServiceServer interface { // Sends a greeting Register(context.Context, *RegisterNewAccountRequest) (*RegisterNewAccountResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) // Internal api CreateVoucher(context.Context, *CreateVoucherRequest) (*CreateVoucherResponse, error) CreateCampaign(context.Context, *CreateCampaignRequest) (*CreateCampaignResponse, error) // contains filtered or unexported methods }
CAKEServiceServer is the server API for CAKEService service. All implementations must embed UnimplementedCAKEServiceServer for forward compatibility
type CreateCampaignRequest ¶
type CreateCampaignRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` StartDay int64 `protobuf:"varint,2,opt,name=start_day,json=startDay,proto3" json:"start_day,omitempty"` EndDay int64 `protobuf:"varint,3,opt,name=end_day,json=endDay,proto3" json:"end_day,omitempty"` TotalSlot int64 `protobuf:"varint,4,opt,name=total_slot,json=totalSlot,proto3" json:"total_slot,omitempty"` Vouchers []*CreateCampaignRequest_Data `protobuf:"bytes,5,rep,name=vouchers,proto3" json:"vouchers,omitempty"` // contains filtered or unexported fields }
Create Campaign
func (*CreateCampaignRequest) Descriptor
deprecated
func (*CreateCampaignRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCampaignRequest.ProtoReflect.Descriptor instead.
func (*CreateCampaignRequest) GetEndDay ¶
func (x *CreateCampaignRequest) GetEndDay() int64
func (*CreateCampaignRequest) GetName ¶
func (x *CreateCampaignRequest) GetName() string
func (*CreateCampaignRequest) GetStartDay ¶
func (x *CreateCampaignRequest) GetStartDay() int64
func (*CreateCampaignRequest) GetTotalSlot ¶
func (x *CreateCampaignRequest) GetTotalSlot() int64
func (*CreateCampaignRequest) GetVouchers ¶
func (x *CreateCampaignRequest) GetVouchers() []*CreateCampaignRequest_Data
func (*CreateCampaignRequest) ProtoMessage ¶
func (*CreateCampaignRequest) ProtoMessage()
func (*CreateCampaignRequest) ProtoReflect ¶
func (x *CreateCampaignRequest) ProtoReflect() protoreflect.Message
func (*CreateCampaignRequest) Reset ¶
func (x *CreateCampaignRequest) Reset()
func (*CreateCampaignRequest) String ¶
func (x *CreateCampaignRequest) String() string
type CreateCampaignRequest_Data ¶
type CreateCampaignRequest_Data struct { VoucherId int32 `protobuf:"varint,1,opt,name=voucher_id,json=voucherId,proto3" json:"voucher_id,omitempty"` // contains filtered or unexported fields }
func (*CreateCampaignRequest_Data) Descriptor
deprecated
func (*CreateCampaignRequest_Data) Descriptor() ([]byte, []int)
Deprecated: Use CreateCampaignRequest_Data.ProtoReflect.Descriptor instead.
func (*CreateCampaignRequest_Data) GetVoucherId ¶
func (x *CreateCampaignRequest_Data) GetVoucherId() int32
func (*CreateCampaignRequest_Data) ProtoMessage ¶
func (*CreateCampaignRequest_Data) ProtoMessage()
func (*CreateCampaignRequest_Data) ProtoReflect ¶
func (x *CreateCampaignRequest_Data) ProtoReflect() protoreflect.Message
func (*CreateCampaignRequest_Data) Reset ¶
func (x *CreateCampaignRequest_Data) Reset()
func (*CreateCampaignRequest_Data) String ¶
func (x *CreateCampaignRequest_Data) String() string
type CreateCampaignResponse ¶
type CreateCampaignResponse struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *CreateCampaignResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` MsgKey string `protobuf:"bytes,4,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"` // contains filtered or unexported fields }
func (*CreateCampaignResponse) Descriptor
deprecated
func (*CreateCampaignResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCampaignResponse.ProtoReflect.Descriptor instead.
func (*CreateCampaignResponse) GetData ¶
func (x *CreateCampaignResponse) GetData() *CreateCampaignResponse_Data
func (*CreateCampaignResponse) GetMessage ¶
func (x *CreateCampaignResponse) GetMessage() string
func (*CreateCampaignResponse) GetMsgKey ¶
func (x *CreateCampaignResponse) GetMsgKey() string
func (*CreateCampaignResponse) GetStatus ¶
func (x *CreateCampaignResponse) GetStatus() int32
func (*CreateCampaignResponse) ProtoMessage ¶
func (*CreateCampaignResponse) ProtoMessage()
func (*CreateCampaignResponse) ProtoReflect ¶
func (x *CreateCampaignResponse) ProtoReflect() protoreflect.Message
func (*CreateCampaignResponse) Reset ¶
func (x *CreateCampaignResponse) Reset()
func (*CreateCampaignResponse) String ¶
func (x *CreateCampaignResponse) String() string
type CreateCampaignResponse_Data ¶
type CreateCampaignResponse_Data struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateCampaignResponse_Data) Descriptor
deprecated
func (*CreateCampaignResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use CreateCampaignResponse_Data.ProtoReflect.Descriptor instead.
func (*CreateCampaignResponse_Data) GetId ¶
func (x *CreateCampaignResponse_Data) GetId() int64
func (*CreateCampaignResponse_Data) ProtoMessage ¶
func (*CreateCampaignResponse_Data) ProtoMessage()
func (*CreateCampaignResponse_Data) ProtoReflect ¶
func (x *CreateCampaignResponse_Data) ProtoReflect() protoreflect.Message
func (*CreateCampaignResponse_Data) Reset ¶
func (x *CreateCampaignResponse_Data) Reset()
func (*CreateCampaignResponse_Data) String ¶
func (x *CreateCampaignResponse_Data) String() string
type CreateVoucherRequest ¶
type CreateVoucherRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Value float32 `protobuf:"fixed32,3,opt,name=value,proto3" json:"value,omitempty"` // discount percent // contains filtered or unexported fields }
Internal api to create voucher / update voucher / get list voucher
func (*CreateVoucherRequest) Descriptor
deprecated
func (*CreateVoucherRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateVoucherRequest.ProtoReflect.Descriptor instead.
func (*CreateVoucherRequest) GetName ¶
func (x *CreateVoucherRequest) GetName() string
func (*CreateVoucherRequest) GetType ¶
func (x *CreateVoucherRequest) GetType() string
func (*CreateVoucherRequest) GetValue ¶
func (x *CreateVoucherRequest) GetValue() float32
func (*CreateVoucherRequest) ProtoMessage ¶
func (*CreateVoucherRequest) ProtoMessage()
func (*CreateVoucherRequest) ProtoReflect ¶
func (x *CreateVoucherRequest) ProtoReflect() protoreflect.Message
func (*CreateVoucherRequest) Reset ¶
func (x *CreateVoucherRequest) Reset()
func (*CreateVoucherRequest) String ¶
func (x *CreateVoucherRequest) String() string
type CreateVoucherResponse ¶
type CreateVoucherResponse struct { Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` MsgKey string `protobuf:"bytes,3,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"` // contains filtered or unexported fields }
func (*CreateVoucherResponse) Descriptor
deprecated
func (*CreateVoucherResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateVoucherResponse.ProtoReflect.Descriptor instead.
func (*CreateVoucherResponse) GetMessage ¶
func (x *CreateVoucherResponse) GetMessage() string
func (*CreateVoucherResponse) GetMsgKey ¶
func (x *CreateVoucherResponse) GetMsgKey() string
func (*CreateVoucherResponse) GetStatus ¶
func (x *CreateVoucherResponse) GetStatus() int64
func (*CreateVoucherResponse) ProtoMessage ¶
func (*CreateVoucherResponse) ProtoMessage()
func (*CreateVoucherResponse) ProtoReflect ¶
func (x *CreateVoucherResponse) ProtoReflect() protoreflect.Message
func (*CreateVoucherResponse) Reset ¶
func (x *CreateVoucherResponse) Reset()
func (*CreateVoucherResponse) String ¶
func (x *CreateVoucherResponse) String() string
type GetUserVoucherRequest ¶
type GetUserVoucherRequest struct { // via token UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
Get list voucher of user user empty api request
func (*GetUserVoucherRequest) Descriptor
deprecated
func (*GetUserVoucherRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserVoucherRequest.ProtoReflect.Descriptor instead.
func (*GetUserVoucherRequest) GetUserId ¶
func (x *GetUserVoucherRequest) GetUserId() string
func (*GetUserVoucherRequest) ProtoMessage ¶
func (*GetUserVoucherRequest) ProtoMessage()
func (*GetUserVoucherRequest) ProtoReflect ¶
func (x *GetUserVoucherRequest) ProtoReflect() protoreflect.Message
func (*GetUserVoucherRequest) Reset ¶
func (x *GetUserVoucherRequest) Reset()
func (*GetUserVoucherRequest) String ¶
func (x *GetUserVoucherRequest) String() string
type GetUserVoucherResponse ¶
type GetUserVoucherResponse struct {
// contains filtered or unexported fields
}
func (*GetUserVoucherResponse) Descriptor
deprecated
func (*GetUserVoucherResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserVoucherResponse.ProtoReflect.Descriptor instead.
func (*GetUserVoucherResponse) ProtoMessage ¶
func (*GetUserVoucherResponse) ProtoMessage()
func (*GetUserVoucherResponse) ProtoReflect ¶
func (x *GetUserVoucherResponse) ProtoReflect() protoreflect.Message
func (*GetUserVoucherResponse) Reset ¶
func (x *GetUserVoucherResponse) Reset()
func (*GetUserVoucherResponse) String ¶
func (x *GetUserVoucherResponse) String() string
type LoginRequest ¶
type LoginRequest struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
Login
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUserName ¶
func (x *LoginRequest) GetUserName() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *LoginResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` MsgKey string `protobuf:"bytes,4,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"` // for error handle // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetData ¶
func (x *LoginResponse) GetData() *LoginResponse_Data
func (*LoginResponse) GetMessage ¶
func (x *LoginResponse) GetMessage() string
func (*LoginResponse) GetMsgKey ¶
func (x *LoginResponse) GetMsgKey() string
func (*LoginResponse) GetStatus ¶
func (x *LoginResponse) GetStatus() int32
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type LoginResponse_Data ¶
type LoginResponse_Data struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse_Data) Descriptor
deprecated
func (*LoginResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse_Data.ProtoReflect.Descriptor instead.
func (*LoginResponse_Data) GetToken ¶
func (x *LoginResponse_Data) GetToken() string
func (*LoginResponse_Data) ProtoMessage ¶
func (*LoginResponse_Data) ProtoMessage()
func (*LoginResponse_Data) ProtoReflect ¶
func (x *LoginResponse_Data) ProtoReflect() protoreflect.Message
func (*LoginResponse_Data) Reset ¶
func (x *LoginResponse_Data) Reset()
func (*LoginResponse_Data) String ¶
func (x *LoginResponse_Data) String() string
type RegisterNewAccountRequest ¶
type RegisterNewAccountRequest struct { FullName string `protobuf:"bytes,1,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` // account user for login Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` PhoneNumber string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` Birthday int64 `protobuf:"varint,7,opt,name=birthday,proto3" json:"birthday,omitempty"` // contains filtered or unexported fields }
Publish api Register
func (*RegisterNewAccountRequest) Descriptor
deprecated
func (*RegisterNewAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterNewAccountRequest.ProtoReflect.Descriptor instead.
func (*RegisterNewAccountRequest) GetAccount ¶
func (x *RegisterNewAccountRequest) GetAccount() string
func (*RegisterNewAccountRequest) GetBirthday ¶
func (x *RegisterNewAccountRequest) GetBirthday() int64
func (*RegisterNewAccountRequest) GetEmail ¶
func (x *RegisterNewAccountRequest) GetEmail() string
func (*RegisterNewAccountRequest) GetFullName ¶
func (x *RegisterNewAccountRequest) GetFullName() string
func (*RegisterNewAccountRequest) GetPassword ¶
func (x *RegisterNewAccountRequest) GetPassword() string
func (*RegisterNewAccountRequest) GetPhoneNumber ¶
func (x *RegisterNewAccountRequest) GetPhoneNumber() string
func (*RegisterNewAccountRequest) GetUserName ¶
func (x *RegisterNewAccountRequest) GetUserName() string
func (*RegisterNewAccountRequest) ProtoMessage ¶
func (*RegisterNewAccountRequest) ProtoMessage()
func (*RegisterNewAccountRequest) ProtoReflect ¶
func (x *RegisterNewAccountRequest) ProtoReflect() protoreflect.Message
func (*RegisterNewAccountRequest) Reset ¶
func (x *RegisterNewAccountRequest) Reset()
func (*RegisterNewAccountRequest) String ¶
func (x *RegisterNewAccountRequest) String() string
type RegisterNewAccountResponse ¶
type RegisterNewAccountResponse struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *RegisterNewAccountResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` MsgKey string `protobuf:"bytes,4,opt,name=msg_key,json=msgKey,proto3" json:"msg_key,omitempty"` // contains filtered or unexported fields }
func (*RegisterNewAccountResponse) Descriptor
deprecated
func (*RegisterNewAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterNewAccountResponse.ProtoReflect.Descriptor instead.
func (*RegisterNewAccountResponse) GetData ¶
func (x *RegisterNewAccountResponse) GetData() *RegisterNewAccountResponse_Data
func (*RegisterNewAccountResponse) GetMessage ¶
func (x *RegisterNewAccountResponse) GetMessage() string
func (*RegisterNewAccountResponse) GetMsgKey ¶
func (x *RegisterNewAccountResponse) GetMsgKey() string
func (*RegisterNewAccountResponse) GetStatus ¶
func (x *RegisterNewAccountResponse) GetStatus() int32
func (*RegisterNewAccountResponse) ProtoMessage ¶
func (*RegisterNewAccountResponse) ProtoMessage()
func (*RegisterNewAccountResponse) ProtoReflect ¶
func (x *RegisterNewAccountResponse) ProtoReflect() protoreflect.Message
func (*RegisterNewAccountResponse) Reset ¶
func (x *RegisterNewAccountResponse) Reset()
func (*RegisterNewAccountResponse) String ¶
func (x *RegisterNewAccountResponse) String() string
type RegisterNewAccountResponse_Data ¶
type RegisterNewAccountResponse_Data struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RegisterNewAccountResponse_Data) Descriptor
deprecated
func (*RegisterNewAccountResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use RegisterNewAccountResponse_Data.ProtoReflect.Descriptor instead.
func (*RegisterNewAccountResponse_Data) GetToken ¶
func (x *RegisterNewAccountResponse_Data) GetToken() string
func (*RegisterNewAccountResponse_Data) ProtoMessage ¶
func (*RegisterNewAccountResponse_Data) ProtoMessage()
func (*RegisterNewAccountResponse_Data) ProtoReflect ¶
func (x *RegisterNewAccountResponse_Data) ProtoReflect() protoreflect.Message
func (*RegisterNewAccountResponse_Data) Reset ¶
func (x *RegisterNewAccountResponse_Data) Reset()
func (*RegisterNewAccountResponse_Data) String ¶
func (x *RegisterNewAccountResponse_Data) String() string
type UnimplementedCAKEServiceServer ¶
type UnimplementedCAKEServiceServer struct { }
UnimplementedCAKEServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCAKEServiceServer) CreateCampaign ¶
func (UnimplementedCAKEServiceServer) CreateCampaign(context.Context, *CreateCampaignRequest) (*CreateCampaignResponse, error)
func (UnimplementedCAKEServiceServer) CreateVoucher ¶
func (UnimplementedCAKEServiceServer) CreateVoucher(context.Context, *CreateVoucherRequest) (*CreateVoucherResponse, error)
func (UnimplementedCAKEServiceServer) Login ¶
func (UnimplementedCAKEServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedCAKEServiceServer) Register ¶
func (UnimplementedCAKEServiceServer) Register(context.Context, *RegisterNewAccountRequest) (*RegisterNewAccountResponse, error)
type UnsafeCAKEServiceServer ¶
type UnsafeCAKEServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCAKEServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CAKEServiceServer will result in compilation errors.