Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCouponServiceHTTPServer(s *http.Server, srv CouponServiceHTTPServer)
- func RegisterCouponServiceServer(s grpc.ServiceRegistrar, srv CouponServiceServer)
- type BatchDeleteCouponReply
- func (*BatchDeleteCouponReply) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeleteCouponReply) GetCode() int32
- func (x *BatchDeleteCouponReply) GetMessage() string
- func (*BatchDeleteCouponReply) ProtoMessage()
- func (x *BatchDeleteCouponReply) ProtoReflect() protoreflect.Message
- func (x *BatchDeleteCouponReply) Reset()
- func (x *BatchDeleteCouponReply) String() string
- func (m *BatchDeleteCouponReply) Validate() error
- func (m *BatchDeleteCouponReply) ValidateAll() error
- type BatchDeleteCouponReplyMultiError
- type BatchDeleteCouponReplyValidationError
- func (e BatchDeleteCouponReplyValidationError) Cause() error
- func (e BatchDeleteCouponReplyValidationError) Error() string
- func (e BatchDeleteCouponReplyValidationError) ErrorName() string
- func (e BatchDeleteCouponReplyValidationError) Field() string
- func (e BatchDeleteCouponReplyValidationError) Key() bool
- func (e BatchDeleteCouponReplyValidationError) Reason() string
- type BatchDeleteCouponRequest
- func (*BatchDeleteCouponRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeleteCouponRequest) GetIds() []int64
- func (*BatchDeleteCouponRequest) ProtoMessage()
- func (x *BatchDeleteCouponRequest) ProtoReflect() protoreflect.Message
- func (x *BatchDeleteCouponRequest) Reset()
- func (x *BatchDeleteCouponRequest) String() string
- func (m *BatchDeleteCouponRequest) Validate() error
- func (m *BatchDeleteCouponRequest) ValidateAll() error
- type BatchDeleteCouponRequestMultiError
- type BatchDeleteCouponRequestValidationError
- func (e BatchDeleteCouponRequestValidationError) Cause() error
- func (e BatchDeleteCouponRequestValidationError) Error() string
- func (e BatchDeleteCouponRequestValidationError) ErrorName() string
- func (e BatchDeleteCouponRequestValidationError) Field() string
- func (e BatchDeleteCouponRequestValidationError) Key() bool
- func (e BatchDeleteCouponRequestValidationError) Reason() string
- type CouponItem
- func (*CouponItem) Descriptor() ([]byte, []int)deprecated
- func (x *CouponItem) GetCode() string
- func (x *CouponItem) GetCount() int64
- func (x *CouponItem) GetCreatedAt() int64
- func (x *CouponItem) GetDiscount() int64
- func (x *CouponItem) GetEnable() bool
- func (x *CouponItem) GetExpireTime() int64
- func (x *CouponItem) GetId() int64
- func (x *CouponItem) GetName() string
- func (x *CouponItem) GetStartTime() int64
- func (x *CouponItem) GetSubscribe() []int64
- func (x *CouponItem) GetType() int32
- func (x *CouponItem) GetUpdatedAt() int64
- func (x *CouponItem) GetUsedCount() int64
- func (x *CouponItem) GetUserLimit() int64
- func (*CouponItem) ProtoMessage()
- func (x *CouponItem) ProtoReflect() protoreflect.Message
- func (x *CouponItem) Reset()
- func (x *CouponItem) String() string
- func (m *CouponItem) Validate() error
- func (m *CouponItem) ValidateAll() error
- type CouponItemMultiError
- type CouponItemValidationError
- type CouponServiceClient
- type CouponServiceHTTPClient
- type CouponServiceHTTPClientImpl
- func (c *CouponServiceHTTPClientImpl) BatchDeleteCoupon(ctx context.Context, in *BatchDeleteCouponRequest, opts ...http.CallOption) (*BatchDeleteCouponReply, error)
- func (c *CouponServiceHTTPClientImpl) CreateCoupon(ctx context.Context, in *CreateCouponRequest, opts ...http.CallOption) (*CreateCouponReply, error)
- func (c *CouponServiceHTTPClientImpl) DeleteCoupon(ctx context.Context, in *DeleteCouponRequest, opts ...http.CallOption) (*DeleteCouponReply, error)
- func (c *CouponServiceHTTPClientImpl) GetCouponList(ctx context.Context, in *GetCouponListRequest, opts ...http.CallOption) (*GetCouponListReply, error)
- func (c *CouponServiceHTTPClientImpl) UpdateCoupon(ctx context.Context, in *UpdateCouponRequest, opts ...http.CallOption) (*UpdateCouponReply, error)
- type CouponServiceHTTPServer
- type CouponServiceServer
- type CreateCouponReply
- func (*CreateCouponReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCouponReply) GetCode() int32
- func (x *CreateCouponReply) GetMessage() string
- func (*CreateCouponReply) ProtoMessage()
- func (x *CreateCouponReply) ProtoReflect() protoreflect.Message
- func (x *CreateCouponReply) Reset()
- func (x *CreateCouponReply) String() string
- func (m *CreateCouponReply) Validate() error
- func (m *CreateCouponReply) ValidateAll() error
- type CreateCouponReplyMultiError
- type CreateCouponReplyValidationError
- func (e CreateCouponReplyValidationError) Cause() error
- func (e CreateCouponReplyValidationError) Error() string
- func (e CreateCouponReplyValidationError) ErrorName() string
- func (e CreateCouponReplyValidationError) Field() string
- func (e CreateCouponReplyValidationError) Key() bool
- func (e CreateCouponReplyValidationError) Reason() string
- type CreateCouponRequest
- func (*CreateCouponRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCouponRequest) GetCode() string
- func (x *CreateCouponRequest) GetCount() int64
- func (x *CreateCouponRequest) GetDiscount() int64
- func (x *CreateCouponRequest) GetEnable() bool
- func (x *CreateCouponRequest) GetExpireTime() int64
- func (x *CreateCouponRequest) GetName() string
- func (x *CreateCouponRequest) GetStartTime() int64
- func (x *CreateCouponRequest) GetSubscribe() []int64
- func (x *CreateCouponRequest) GetType() int32
- func (x *CreateCouponRequest) GetUsedCount() int64
- func (x *CreateCouponRequest) GetUserLimit() int64
- func (*CreateCouponRequest) ProtoMessage()
- func (x *CreateCouponRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCouponRequest) Reset()
- func (x *CreateCouponRequest) String() string
- func (m *CreateCouponRequest) Validate() error
- func (m *CreateCouponRequest) ValidateAll() error
- type CreateCouponRequestMultiError
- type CreateCouponRequestValidationError
- func (e CreateCouponRequestValidationError) Cause() error
- func (e CreateCouponRequestValidationError) Error() string
- func (e CreateCouponRequestValidationError) ErrorName() string
- func (e CreateCouponRequestValidationError) Field() string
- func (e CreateCouponRequestValidationError) Key() bool
- func (e CreateCouponRequestValidationError) Reason() string
- type DeleteCouponReply
- func (*DeleteCouponReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCouponReply) GetCode() int32
- func (x *DeleteCouponReply) GetMessage() string
- func (*DeleteCouponReply) ProtoMessage()
- func (x *DeleteCouponReply) ProtoReflect() protoreflect.Message
- func (x *DeleteCouponReply) Reset()
- func (x *DeleteCouponReply) String() string
- func (m *DeleteCouponReply) Validate() error
- func (m *DeleteCouponReply) ValidateAll() error
- type DeleteCouponReplyMultiError
- type DeleteCouponReplyValidationError
- func (e DeleteCouponReplyValidationError) Cause() error
- func (e DeleteCouponReplyValidationError) Error() string
- func (e DeleteCouponReplyValidationError) ErrorName() string
- func (e DeleteCouponReplyValidationError) Field() string
- func (e DeleteCouponReplyValidationError) Key() bool
- func (e DeleteCouponReplyValidationError) Reason() string
- type DeleteCouponRequest
- func (*DeleteCouponRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCouponRequest) GetId() int64
- func (*DeleteCouponRequest) ProtoMessage()
- func (x *DeleteCouponRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCouponRequest) Reset()
- func (x *DeleteCouponRequest) String() string
- func (m *DeleteCouponRequest) Validate() error
- func (m *DeleteCouponRequest) ValidateAll() error
- type DeleteCouponRequestMultiError
- type DeleteCouponRequestValidationError
- func (e DeleteCouponRequestValidationError) Cause() error
- func (e DeleteCouponRequestValidationError) Error() string
- func (e DeleteCouponRequestValidationError) ErrorName() string
- func (e DeleteCouponRequestValidationError) Field() string
- func (e DeleteCouponRequestValidationError) Key() bool
- func (e DeleteCouponRequestValidationError) Reason() string
- type GetCouponListData
- func (*GetCouponListData) Descriptor() ([]byte, []int)deprecated
- func (x *GetCouponListData) GetList() []*CouponItem
- func (x *GetCouponListData) GetTotal() int32
- func (*GetCouponListData) ProtoMessage()
- func (x *GetCouponListData) ProtoReflect() protoreflect.Message
- func (x *GetCouponListData) Reset()
- func (x *GetCouponListData) String() string
- func (m *GetCouponListData) Validate() error
- func (m *GetCouponListData) ValidateAll() error
- type GetCouponListDataMultiError
- type GetCouponListDataValidationError
- func (e GetCouponListDataValidationError) Cause() error
- func (e GetCouponListDataValidationError) Error() string
- func (e GetCouponListDataValidationError) ErrorName() string
- func (e GetCouponListDataValidationError) Field() string
- func (e GetCouponListDataValidationError) Key() bool
- func (e GetCouponListDataValidationError) Reason() string
- type GetCouponListReply
- func (*GetCouponListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetCouponListReply) GetCode() int32
- func (x *GetCouponListReply) GetData() *GetCouponListData
- func (x *GetCouponListReply) GetMessage() string
- func (*GetCouponListReply) ProtoMessage()
- func (x *GetCouponListReply) ProtoReflect() protoreflect.Message
- func (x *GetCouponListReply) Reset()
- func (x *GetCouponListReply) String() string
- func (m *GetCouponListReply) Validate() error
- func (m *GetCouponListReply) ValidateAll() error
- type GetCouponListReplyMultiError
- type GetCouponListReplyValidationError
- func (e GetCouponListReplyValidationError) Cause() error
- func (e GetCouponListReplyValidationError) Error() string
- func (e GetCouponListReplyValidationError) ErrorName() string
- func (e GetCouponListReplyValidationError) Field() string
- func (e GetCouponListReplyValidationError) Key() bool
- func (e GetCouponListReplyValidationError) Reason() string
- type GetCouponListRequest
- func (*GetCouponListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCouponListRequest) GetPage() int64
- func (x *GetCouponListRequest) GetSearch() string
- func (x *GetCouponListRequest) GetSize() int64
- func (x *GetCouponListRequest) GetSubscribe() int64
- func (*GetCouponListRequest) ProtoMessage()
- func (x *GetCouponListRequest) ProtoReflect() protoreflect.Message
- func (x *GetCouponListRequest) Reset()
- func (x *GetCouponListRequest) String() string
- func (m *GetCouponListRequest) Validate() error
- func (m *GetCouponListRequest) ValidateAll() error
- type GetCouponListRequestMultiError
- type GetCouponListRequestValidationError
- func (e GetCouponListRequestValidationError) Cause() error
- func (e GetCouponListRequestValidationError) Error() string
- func (e GetCouponListRequestValidationError) ErrorName() string
- func (e GetCouponListRequestValidationError) Field() string
- func (e GetCouponListRequestValidationError) Key() bool
- func (e GetCouponListRequestValidationError) Reason() string
- type UnimplementedCouponServiceServer
- func (UnimplementedCouponServiceServer) BatchDeleteCoupon(context.Context, *BatchDeleteCouponRequest) (*BatchDeleteCouponReply, error)
- func (UnimplementedCouponServiceServer) CreateCoupon(context.Context, *CreateCouponRequest) (*CreateCouponReply, error)
- func (UnimplementedCouponServiceServer) DeleteCoupon(context.Context, *DeleteCouponRequest) (*DeleteCouponReply, error)
- func (UnimplementedCouponServiceServer) GetCouponList(context.Context, *GetCouponListRequest) (*GetCouponListReply, error)
- func (UnimplementedCouponServiceServer) UpdateCoupon(context.Context, *UpdateCouponRequest) (*UpdateCouponReply, error)
- type UnsafeCouponServiceServer
- type UpdateCouponReply
- func (*UpdateCouponReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCouponReply) GetCode() int32
- func (x *UpdateCouponReply) GetMessage() string
- func (*UpdateCouponReply) ProtoMessage()
- func (x *UpdateCouponReply) ProtoReflect() protoreflect.Message
- func (x *UpdateCouponReply) Reset()
- func (x *UpdateCouponReply) String() string
- func (m *UpdateCouponReply) Validate() error
- func (m *UpdateCouponReply) ValidateAll() error
- type UpdateCouponReplyMultiError
- type UpdateCouponReplyValidationError
- func (e UpdateCouponReplyValidationError) Cause() error
- func (e UpdateCouponReplyValidationError) Error() string
- func (e UpdateCouponReplyValidationError) ErrorName() string
- func (e UpdateCouponReplyValidationError) Field() string
- func (e UpdateCouponReplyValidationError) Key() bool
- func (e UpdateCouponReplyValidationError) Reason() string
- type UpdateCouponRequest
- func (*UpdateCouponRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCouponRequest) GetCode() string
- func (x *UpdateCouponRequest) GetCount() int64
- func (x *UpdateCouponRequest) GetDiscount() int64
- func (x *UpdateCouponRequest) GetEnable() bool
- func (x *UpdateCouponRequest) GetExpireTime() int64
- func (x *UpdateCouponRequest) GetId() int64
- func (x *UpdateCouponRequest) GetName() string
- func (x *UpdateCouponRequest) GetStartTime() int64
- func (x *UpdateCouponRequest) GetSubscribe() []int64
- func (x *UpdateCouponRequest) GetType() int32
- func (x *UpdateCouponRequest) GetUsedCount() int64
- func (x *UpdateCouponRequest) GetUserLimit() int64
- func (*UpdateCouponRequest) ProtoMessage()
- func (x *UpdateCouponRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCouponRequest) Reset()
- func (x *UpdateCouponRequest) String() string
- func (m *UpdateCouponRequest) Validate() error
- func (m *UpdateCouponRequest) ValidateAll() error
- type UpdateCouponRequestMultiError
- type UpdateCouponRequestValidationError
- func (e UpdateCouponRequestValidationError) Cause() error
- func (e UpdateCouponRequestValidationError) Error() string
- func (e UpdateCouponRequestValidationError) ErrorName() string
- func (e UpdateCouponRequestValidationError) Field() string
- func (e UpdateCouponRequestValidationError) Key() bool
- func (e UpdateCouponRequestValidationError) Reason() string
Constants ¶
const ( CouponService_CreateCoupon_FullMethodName = "/api.admin.coupon.v1.CouponService/CreateCoupon" CouponService_UpdateCoupon_FullMethodName = "/api.admin.coupon.v1.CouponService/UpdateCoupon" CouponService_DeleteCoupon_FullMethodName = "/api.admin.coupon.v1.CouponService/DeleteCoupon" CouponService_BatchDeleteCoupon_FullMethodName = "/api.admin.coupon.v1.CouponService/BatchDeleteCoupon" CouponService_GetCouponList_FullMethodName = "/api.admin.coupon.v1.CouponService/GetCouponList" )
const OperationCouponServiceBatchDeleteCoupon = "/api.admin.coupon.v1.CouponService/BatchDeleteCoupon"
const OperationCouponServiceCreateCoupon = "/api.admin.coupon.v1.CouponService/CreateCoupon"
const OperationCouponServiceDeleteCoupon = "/api.admin.coupon.v1.CouponService/DeleteCoupon"
const OperationCouponServiceGetCouponList = "/api.admin.coupon.v1.CouponService/GetCouponList"
const OperationCouponServiceUpdateCoupon = "/api.admin.coupon.v1.CouponService/UpdateCoupon"
Variables ¶
var CouponService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.admin.coupon.v1.CouponService", HandlerType: (*CouponServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCoupon", Handler: _CouponService_CreateCoupon_Handler, }, { MethodName: "UpdateCoupon", Handler: _CouponService_UpdateCoupon_Handler, }, { MethodName: "DeleteCoupon", Handler: _CouponService_DeleteCoupon_Handler, }, { MethodName: "BatchDeleteCoupon", Handler: _CouponService_BatchDeleteCoupon_Handler, }, { MethodName: "GetCouponList", Handler: _CouponService_GetCouponList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin/coupon/v1/coupon.proto", }
CouponService_ServiceDesc is the grpc.ServiceDesc for CouponService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_admin_coupon_v1_coupon_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCouponServiceHTTPServer ¶
func RegisterCouponServiceHTTPServer(s *http.Server, srv CouponServiceHTTPServer)
func RegisterCouponServiceServer ¶
func RegisterCouponServiceServer(s grpc.ServiceRegistrar, srv CouponServiceServer)
Types ¶
type BatchDeleteCouponReply ¶
type BatchDeleteCouponReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
// contains filtered or unexported fields
}
BatchDeleteCouponReply 批量删除优惠券响应
func (*BatchDeleteCouponReply) Descriptor
deprecated
func (*BatchDeleteCouponReply) Descriptor() ([]byte, []int)
Deprecated: Use BatchDeleteCouponReply.ProtoReflect.Descriptor instead.
func (*BatchDeleteCouponReply) GetCode ¶
func (x *BatchDeleteCouponReply) GetCode() int32
func (*BatchDeleteCouponReply) GetMessage ¶
func (x *BatchDeleteCouponReply) GetMessage() string
func (*BatchDeleteCouponReply) ProtoMessage ¶
func (*BatchDeleteCouponReply) ProtoMessage()
func (*BatchDeleteCouponReply) ProtoReflect ¶
func (x *BatchDeleteCouponReply) ProtoReflect() protoreflect.Message
func (*BatchDeleteCouponReply) Reset ¶
func (x *BatchDeleteCouponReply) Reset()
func (*BatchDeleteCouponReply) String ¶
func (x *BatchDeleteCouponReply) String() string
func (*BatchDeleteCouponReply) Validate ¶
func (m *BatchDeleteCouponReply) Validate() error
Validate checks the field values on BatchDeleteCouponReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BatchDeleteCouponReply) ValidateAll ¶
func (m *BatchDeleteCouponReply) ValidateAll() error
ValidateAll checks the field values on BatchDeleteCouponReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BatchDeleteCouponReplyMultiError, or nil if none found.
type BatchDeleteCouponReplyMultiError ¶
type BatchDeleteCouponReplyMultiError []error
BatchDeleteCouponReplyMultiError is an error wrapping multiple validation errors returned by BatchDeleteCouponReply.ValidateAll() if the designated constraints aren't met.
func (BatchDeleteCouponReplyMultiError) AllErrors ¶
func (m BatchDeleteCouponReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchDeleteCouponReplyMultiError) Error ¶
func (m BatchDeleteCouponReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BatchDeleteCouponReplyValidationError ¶
type BatchDeleteCouponReplyValidationError struct {
// contains filtered or unexported fields
}
BatchDeleteCouponReplyValidationError is the validation error returned by BatchDeleteCouponReply.Validate if the designated constraints aren't met.
func (BatchDeleteCouponReplyValidationError) Cause ¶
func (e BatchDeleteCouponReplyValidationError) Cause() error
Cause function returns cause value.
func (BatchDeleteCouponReplyValidationError) Error ¶
func (e BatchDeleteCouponReplyValidationError) Error() string
Error satisfies the builtin error interface
func (BatchDeleteCouponReplyValidationError) ErrorName ¶
func (e BatchDeleteCouponReplyValidationError) ErrorName() string
ErrorName returns error name.
func (BatchDeleteCouponReplyValidationError) Field ¶
func (e BatchDeleteCouponReplyValidationError) Field() string
Field function returns field value.
func (BatchDeleteCouponReplyValidationError) Key ¶
func (e BatchDeleteCouponReplyValidationError) Key() bool
Key function returns key value.
func (BatchDeleteCouponReplyValidationError) Reason ¶
func (e BatchDeleteCouponReplyValidationError) Reason() string
Reason function returns reason value.
type BatchDeleteCouponRequest ¶
type BatchDeleteCouponRequest struct {
Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // 优惠券ID列表
// contains filtered or unexported fields
}
BatchDeleteCouponRequest 批量删除优惠券请求
func (*BatchDeleteCouponRequest) Descriptor
deprecated
func (*BatchDeleteCouponRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchDeleteCouponRequest.ProtoReflect.Descriptor instead.
func (*BatchDeleteCouponRequest) GetIds ¶
func (x *BatchDeleteCouponRequest) GetIds() []int64
func (*BatchDeleteCouponRequest) ProtoMessage ¶
func (*BatchDeleteCouponRequest) ProtoMessage()
func (*BatchDeleteCouponRequest) ProtoReflect ¶
func (x *BatchDeleteCouponRequest) ProtoReflect() protoreflect.Message
func (*BatchDeleteCouponRequest) Reset ¶
func (x *BatchDeleteCouponRequest) Reset()
func (*BatchDeleteCouponRequest) String ¶
func (x *BatchDeleteCouponRequest) String() string
func (*BatchDeleteCouponRequest) Validate ¶
func (m *BatchDeleteCouponRequest) Validate() error
Validate checks the field values on BatchDeleteCouponRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BatchDeleteCouponRequest) ValidateAll ¶
func (m *BatchDeleteCouponRequest) ValidateAll() error
ValidateAll checks the field values on BatchDeleteCouponRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BatchDeleteCouponRequestMultiError, or nil if none found.
type BatchDeleteCouponRequestMultiError ¶
type BatchDeleteCouponRequestMultiError []error
BatchDeleteCouponRequestMultiError is an error wrapping multiple validation errors returned by BatchDeleteCouponRequest.ValidateAll() if the designated constraints aren't met.
func (BatchDeleteCouponRequestMultiError) AllErrors ¶
func (m BatchDeleteCouponRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchDeleteCouponRequestMultiError) Error ¶
func (m BatchDeleteCouponRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BatchDeleteCouponRequestValidationError ¶
type BatchDeleteCouponRequestValidationError struct {
// contains filtered or unexported fields
}
BatchDeleteCouponRequestValidationError is the validation error returned by BatchDeleteCouponRequest.Validate if the designated constraints aren't met.
func (BatchDeleteCouponRequestValidationError) Cause ¶
func (e BatchDeleteCouponRequestValidationError) Cause() error
Cause function returns cause value.
func (BatchDeleteCouponRequestValidationError) Error ¶
func (e BatchDeleteCouponRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BatchDeleteCouponRequestValidationError) ErrorName ¶
func (e BatchDeleteCouponRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BatchDeleteCouponRequestValidationError) Field ¶
func (e BatchDeleteCouponRequestValidationError) Field() string
Field function returns field value.
func (BatchDeleteCouponRequestValidationError) Key ¶
func (e BatchDeleteCouponRequestValidationError) Key() bool
Key function returns key value.
func (BatchDeleteCouponRequestValidationError) Reason ¶
func (e BatchDeleteCouponRequestValidationError) Reason() string
Reason function returns reason value.
type CouponItem ¶
type CouponItem struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 优惠券ID
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 优惠券名称
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // 优惠券代码
Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // 数量限制
Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` // 类型
Discount int64 `protobuf:"varint,6,opt,name=discount,proto3" json:"discount,omitempty"` // 折扣(分)
StartTime int64 `protobuf:"varint,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // 开始时间(Unix时间戳,秒)
ExpireTime int64 `protobuf:"varint,8,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // 过期时间(Unix时间戳,秒)
UserLimit int64 `protobuf:"varint,9,opt,name=user_limit,json=userLimit,proto3" json:"user_limit,omitempty"` // 用户限制
Subscribe []int64 `protobuf:"varint,10,rep,packed,name=subscribe,proto3" json:"subscribe,omitempty"` // 订阅限制
UsedCount int64 `protobuf:"varint,11,opt,name=used_count,json=usedCount,proto3" json:"used_count,omitempty"` // 已使用数量
Enable bool `protobuf:"varint,12,opt,name=enable,proto3" json:"enable,omitempty"` // 启用
CreatedAt int64 `protobuf:"varint,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间(Unix时间戳,秒)
UpdatedAt int64 `protobuf:"varint,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间(Unix时间戳,秒)
// contains filtered or unexported fields
}
CouponItem 优惠券项
func (*CouponItem) Descriptor
deprecated
func (*CouponItem) Descriptor() ([]byte, []int)
Deprecated: Use CouponItem.ProtoReflect.Descriptor instead.
func (*CouponItem) GetCode ¶
func (x *CouponItem) GetCode() string
func (*CouponItem) GetCount ¶
func (x *CouponItem) GetCount() int64
func (*CouponItem) GetCreatedAt ¶
func (x *CouponItem) GetCreatedAt() int64
func (*CouponItem) GetDiscount ¶
func (x *CouponItem) GetDiscount() int64
func (*CouponItem) GetEnable ¶
func (x *CouponItem) GetEnable() bool
func (*CouponItem) GetExpireTime ¶
func (x *CouponItem) GetExpireTime() int64
func (*CouponItem) GetId ¶
func (x *CouponItem) GetId() int64
func (*CouponItem) GetName ¶
func (x *CouponItem) GetName() string
func (*CouponItem) GetStartTime ¶
func (x *CouponItem) GetStartTime() int64
func (*CouponItem) GetSubscribe ¶
func (x *CouponItem) GetSubscribe() []int64
func (*CouponItem) GetType ¶
func (x *CouponItem) GetType() int32
func (*CouponItem) GetUpdatedAt ¶
func (x *CouponItem) GetUpdatedAt() int64
func (*CouponItem) GetUsedCount ¶
func (x *CouponItem) GetUsedCount() int64
func (*CouponItem) GetUserLimit ¶
func (x *CouponItem) GetUserLimit() int64
func (*CouponItem) ProtoMessage ¶
func (*CouponItem) ProtoMessage()
func (*CouponItem) ProtoReflect ¶
func (x *CouponItem) ProtoReflect() protoreflect.Message
func (*CouponItem) Reset ¶
func (x *CouponItem) Reset()
func (*CouponItem) String ¶
func (x *CouponItem) String() string
func (*CouponItem) Validate ¶
func (m *CouponItem) Validate() error
Validate checks the field values on CouponItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CouponItem) ValidateAll ¶
func (m *CouponItem) ValidateAll() error
ValidateAll checks the field values on CouponItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CouponItemMultiError, or nil if none found.
type CouponItemMultiError ¶
type CouponItemMultiError []error
CouponItemMultiError is an error wrapping multiple validation errors returned by CouponItem.ValidateAll() if the designated constraints aren't met.
func (CouponItemMultiError) AllErrors ¶
func (m CouponItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CouponItemMultiError) Error ¶
func (m CouponItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CouponItemValidationError ¶
type CouponItemValidationError struct {
// contains filtered or unexported fields
}
CouponItemValidationError is the validation error returned by CouponItem.Validate if the designated constraints aren't met.
func (CouponItemValidationError) Cause ¶
func (e CouponItemValidationError) Cause() error
Cause function returns cause value.
func (CouponItemValidationError) Error ¶
func (e CouponItemValidationError) Error() string
Error satisfies the builtin error interface
func (CouponItemValidationError) ErrorName ¶
func (e CouponItemValidationError) ErrorName() string
ErrorName returns error name.
func (CouponItemValidationError) Field ¶
func (e CouponItemValidationError) Field() string
Field function returns field value.
func (CouponItemValidationError) Key ¶
func (e CouponItemValidationError) Key() bool
Key function returns key value.
func (CouponItemValidationError) Reason ¶
func (e CouponItemValidationError) Reason() string
Reason function returns reason value.
type CouponServiceClient ¶
type CouponServiceClient interface {
// CreateCoupon 创建优惠券
CreateCoupon(ctx context.Context, in *CreateCouponRequest, opts ...grpc.CallOption) (*CreateCouponReply, error)
// UpdateCoupon 更新优惠券
UpdateCoupon(ctx context.Context, in *UpdateCouponRequest, opts ...grpc.CallOption) (*UpdateCouponReply, error)
// DeleteCoupon 删除优惠券
DeleteCoupon(ctx context.Context, in *DeleteCouponRequest, opts ...grpc.CallOption) (*DeleteCouponReply, error)
// BatchDeleteCoupon 批量删除优惠券
BatchDeleteCoupon(ctx context.Context, in *BatchDeleteCouponRequest, opts ...grpc.CallOption) (*BatchDeleteCouponReply, error)
// GetCouponList 获取优惠券列表
GetCouponList(ctx context.Context, in *GetCouponListRequest, opts ...grpc.CallOption) (*GetCouponListReply, error)
}
CouponServiceClient is the client API for CouponService 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 NewCouponServiceClient ¶
func NewCouponServiceClient(cc grpc.ClientConnInterface) CouponServiceClient
type CouponServiceHTTPClient ¶
type CouponServiceHTTPClient interface {
// BatchDeleteCoupon BatchDeleteCoupon 批量删除优惠券
BatchDeleteCoupon(ctx context.Context, req *BatchDeleteCouponRequest, opts ...http.CallOption) (rsp *BatchDeleteCouponReply, err error)
// CreateCoupon CreateCoupon 创建优惠券
CreateCoupon(ctx context.Context, req *CreateCouponRequest, opts ...http.CallOption) (rsp *CreateCouponReply, err error)
// DeleteCoupon DeleteCoupon 删除优惠券
DeleteCoupon(ctx context.Context, req *DeleteCouponRequest, opts ...http.CallOption) (rsp *DeleteCouponReply, err error)
// GetCouponList GetCouponList 获取优惠券列表
GetCouponList(ctx context.Context, req *GetCouponListRequest, opts ...http.CallOption) (rsp *GetCouponListReply, err error)
// UpdateCoupon UpdateCoupon 更新优惠券
UpdateCoupon(ctx context.Context, req *UpdateCouponRequest, opts ...http.CallOption) (rsp *UpdateCouponReply, err error)
}
func NewCouponServiceHTTPClient ¶
func NewCouponServiceHTTPClient(client *http.Client) CouponServiceHTTPClient
type CouponServiceHTTPClientImpl ¶
type CouponServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*CouponServiceHTTPClientImpl) BatchDeleteCoupon ¶
func (c *CouponServiceHTTPClientImpl) BatchDeleteCoupon(ctx context.Context, in *BatchDeleteCouponRequest, opts ...http.CallOption) (*BatchDeleteCouponReply, error)
BatchDeleteCoupon BatchDeleteCoupon 批量删除优惠券
func (*CouponServiceHTTPClientImpl) CreateCoupon ¶
func (c *CouponServiceHTTPClientImpl) CreateCoupon(ctx context.Context, in *CreateCouponRequest, opts ...http.CallOption) (*CreateCouponReply, error)
CreateCoupon CreateCoupon 创建优惠券
func (*CouponServiceHTTPClientImpl) DeleteCoupon ¶
func (c *CouponServiceHTTPClientImpl) DeleteCoupon(ctx context.Context, in *DeleteCouponRequest, opts ...http.CallOption) (*DeleteCouponReply, error)
DeleteCoupon DeleteCoupon 删除优惠券
func (*CouponServiceHTTPClientImpl) GetCouponList ¶
func (c *CouponServiceHTTPClientImpl) GetCouponList(ctx context.Context, in *GetCouponListRequest, opts ...http.CallOption) (*GetCouponListReply, error)
GetCouponList GetCouponList 获取优惠券列表
func (*CouponServiceHTTPClientImpl) UpdateCoupon ¶
func (c *CouponServiceHTTPClientImpl) UpdateCoupon(ctx context.Context, in *UpdateCouponRequest, opts ...http.CallOption) (*UpdateCouponReply, error)
UpdateCoupon UpdateCoupon 更新优惠券
type CouponServiceHTTPServer ¶
type CouponServiceHTTPServer interface {
// BatchDeleteCoupon BatchDeleteCoupon 批量删除优惠券
BatchDeleteCoupon(context.Context, *BatchDeleteCouponRequest) (*BatchDeleteCouponReply, error)
// CreateCoupon CreateCoupon 创建优惠券
CreateCoupon(context.Context, *CreateCouponRequest) (*CreateCouponReply, error)
// DeleteCoupon DeleteCoupon 删除优惠券
DeleteCoupon(context.Context, *DeleteCouponRequest) (*DeleteCouponReply, error)
// GetCouponList GetCouponList 获取优惠券列表
GetCouponList(context.Context, *GetCouponListRequest) (*GetCouponListReply, error)
// UpdateCoupon UpdateCoupon 更新优惠券
UpdateCoupon(context.Context, *UpdateCouponRequest) (*UpdateCouponReply, error)
}
type CouponServiceServer ¶
type CouponServiceServer interface {
// CreateCoupon 创建优惠券
CreateCoupon(context.Context, *CreateCouponRequest) (*CreateCouponReply, error)
// UpdateCoupon 更新优惠券
UpdateCoupon(context.Context, *UpdateCouponRequest) (*UpdateCouponReply, error)
// DeleteCoupon 删除优惠券
DeleteCoupon(context.Context, *DeleteCouponRequest) (*DeleteCouponReply, error)
// BatchDeleteCoupon 批量删除优惠券
BatchDeleteCoupon(context.Context, *BatchDeleteCouponRequest) (*BatchDeleteCouponReply, error)
// GetCouponList 获取优惠券列表
GetCouponList(context.Context, *GetCouponListRequest) (*GetCouponListReply, error)
// contains filtered or unexported methods
}
CouponServiceServer is the server API for CouponService service. All implementations must embed UnimplementedCouponServiceServer for forward compatibility.
type CreateCouponReply ¶
type CreateCouponReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
// contains filtered or unexported fields
}
CreateCouponReply 创建优惠券响应
func (*CreateCouponReply) Descriptor
deprecated
func (*CreateCouponReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateCouponReply.ProtoReflect.Descriptor instead.
func (*CreateCouponReply) GetCode ¶
func (x *CreateCouponReply) GetCode() int32
func (*CreateCouponReply) GetMessage ¶
func (x *CreateCouponReply) GetMessage() string
func (*CreateCouponReply) ProtoMessage ¶
func (*CreateCouponReply) ProtoMessage()
func (*CreateCouponReply) ProtoReflect ¶
func (x *CreateCouponReply) ProtoReflect() protoreflect.Message
func (*CreateCouponReply) Reset ¶
func (x *CreateCouponReply) Reset()
func (*CreateCouponReply) String ¶
func (x *CreateCouponReply) String() string
func (*CreateCouponReply) Validate ¶
func (m *CreateCouponReply) Validate() error
Validate checks the field values on CreateCouponReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateCouponReply) ValidateAll ¶
func (m *CreateCouponReply) ValidateAll() error
ValidateAll checks the field values on CreateCouponReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateCouponReplyMultiError, or nil if none found.
type CreateCouponReplyMultiError ¶
type CreateCouponReplyMultiError []error
CreateCouponReplyMultiError is an error wrapping multiple validation errors returned by CreateCouponReply.ValidateAll() if the designated constraints aren't met.
func (CreateCouponReplyMultiError) AllErrors ¶
func (m CreateCouponReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateCouponReplyMultiError) Error ¶
func (m CreateCouponReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateCouponReplyValidationError ¶
type CreateCouponReplyValidationError struct {
// contains filtered or unexported fields
}
CreateCouponReplyValidationError is the validation error returned by CreateCouponReply.Validate if the designated constraints aren't met.
func (CreateCouponReplyValidationError) Cause ¶
func (e CreateCouponReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateCouponReplyValidationError) Error ¶
func (e CreateCouponReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCouponReplyValidationError) ErrorName ¶
func (e CreateCouponReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCouponReplyValidationError) Field ¶
func (e CreateCouponReplyValidationError) Field() string
Field function returns field value.
func (CreateCouponReplyValidationError) Key ¶
func (e CreateCouponReplyValidationError) Key() bool
Key function returns key value.
func (CreateCouponReplyValidationError) Reason ¶
func (e CreateCouponReplyValidationError) Reason() string
Reason function returns reason value.
type CreateCouponRequest ¶
type CreateCouponRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 优惠券名称
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // 优惠券代码(可选,为空则自动生成)
Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // 数量限制
Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"` // 类型:1:百分比 2:固定金额
Discount int64 `protobuf:"varint,5,opt,name=discount,proto3" json:"discount,omitempty"` // 折扣(分)
StartTime int64 `protobuf:"varint,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // 开始时间(Unix时间戳,秒)
ExpireTime int64 `protobuf:"varint,7,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // 过期时间(Unix时间戳,秒)
UserLimit int64 `protobuf:"varint,8,opt,name=user_limit,json=userLimit,proto3" json:"user_limit,omitempty"` // 用户限制
Subscribe []int64 `protobuf:"varint,9,rep,packed,name=subscribe,proto3" json:"subscribe,omitempty"` // 订阅限制
UsedCount int64 `protobuf:"varint,10,opt,name=used_count,json=usedCount,proto3" json:"used_count,omitempty"` // 已使用数量
Enable *bool `protobuf:"varint,11,opt,name=enable,proto3,oneof" json:"enable,omitempty"` // 启用
// contains filtered or unexported fields
}
CreateCouponRequest 创建优惠券请求
func (*CreateCouponRequest) Descriptor
deprecated
func (*CreateCouponRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCouponRequest.ProtoReflect.Descriptor instead.
func (*CreateCouponRequest) GetCode ¶
func (x *CreateCouponRequest) GetCode() string
func (*CreateCouponRequest) GetCount ¶
func (x *CreateCouponRequest) GetCount() int64
func (*CreateCouponRequest) GetDiscount ¶
func (x *CreateCouponRequest) GetDiscount() int64
func (*CreateCouponRequest) GetEnable ¶
func (x *CreateCouponRequest) GetEnable() bool
func (*CreateCouponRequest) GetExpireTime ¶
func (x *CreateCouponRequest) GetExpireTime() int64
func (*CreateCouponRequest) GetName ¶
func (x *CreateCouponRequest) GetName() string
func (*CreateCouponRequest) GetStartTime ¶
func (x *CreateCouponRequest) GetStartTime() int64
func (*CreateCouponRequest) GetSubscribe ¶
func (x *CreateCouponRequest) GetSubscribe() []int64
func (*CreateCouponRequest) GetType ¶
func (x *CreateCouponRequest) GetType() int32
func (*CreateCouponRequest) GetUsedCount ¶
func (x *CreateCouponRequest) GetUsedCount() int64
func (*CreateCouponRequest) GetUserLimit ¶
func (x *CreateCouponRequest) GetUserLimit() int64
func (*CreateCouponRequest) ProtoMessage ¶
func (*CreateCouponRequest) ProtoMessage()
func (*CreateCouponRequest) ProtoReflect ¶
func (x *CreateCouponRequest) ProtoReflect() protoreflect.Message
func (*CreateCouponRequest) Reset ¶
func (x *CreateCouponRequest) Reset()
func (*CreateCouponRequest) String ¶
func (x *CreateCouponRequest) String() string
func (*CreateCouponRequest) Validate ¶
func (m *CreateCouponRequest) Validate() error
Validate checks the field values on CreateCouponRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateCouponRequest) ValidateAll ¶
func (m *CreateCouponRequest) ValidateAll() error
ValidateAll checks the field values on CreateCouponRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateCouponRequestMultiError, or nil if none found.
type CreateCouponRequestMultiError ¶
type CreateCouponRequestMultiError []error
CreateCouponRequestMultiError is an error wrapping multiple validation errors returned by CreateCouponRequest.ValidateAll() if the designated constraints aren't met.
func (CreateCouponRequestMultiError) AllErrors ¶
func (m CreateCouponRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateCouponRequestMultiError) Error ¶
func (m CreateCouponRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateCouponRequestValidationError ¶
type CreateCouponRequestValidationError struct {
// contains filtered or unexported fields
}
CreateCouponRequestValidationError is the validation error returned by CreateCouponRequest.Validate if the designated constraints aren't met.
func (CreateCouponRequestValidationError) Cause ¶
func (e CreateCouponRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateCouponRequestValidationError) Error ¶
func (e CreateCouponRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCouponRequestValidationError) ErrorName ¶
func (e CreateCouponRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCouponRequestValidationError) Field ¶
func (e CreateCouponRequestValidationError) Field() string
Field function returns field value.
func (CreateCouponRequestValidationError) Key ¶
func (e CreateCouponRequestValidationError) Key() bool
Key function returns key value.
func (CreateCouponRequestValidationError) Reason ¶
func (e CreateCouponRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteCouponReply ¶
type DeleteCouponReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
// contains filtered or unexported fields
}
DeleteCouponReply 删除优惠券响应
func (*DeleteCouponReply) Descriptor
deprecated
func (*DeleteCouponReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCouponReply.ProtoReflect.Descriptor instead.
func (*DeleteCouponReply) GetCode ¶
func (x *DeleteCouponReply) GetCode() int32
func (*DeleteCouponReply) GetMessage ¶
func (x *DeleteCouponReply) GetMessage() string
func (*DeleteCouponReply) ProtoMessage ¶
func (*DeleteCouponReply) ProtoMessage()
func (*DeleteCouponReply) ProtoReflect ¶
func (x *DeleteCouponReply) ProtoReflect() protoreflect.Message
func (*DeleteCouponReply) Reset ¶
func (x *DeleteCouponReply) Reset()
func (*DeleteCouponReply) String ¶
func (x *DeleteCouponReply) String() string
func (*DeleteCouponReply) Validate ¶
func (m *DeleteCouponReply) Validate() error
Validate checks the field values on DeleteCouponReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteCouponReply) ValidateAll ¶
func (m *DeleteCouponReply) ValidateAll() error
ValidateAll checks the field values on DeleteCouponReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteCouponReplyMultiError, or nil if none found.
type DeleteCouponReplyMultiError ¶
type DeleteCouponReplyMultiError []error
DeleteCouponReplyMultiError is an error wrapping multiple validation errors returned by DeleteCouponReply.ValidateAll() if the designated constraints aren't met.
func (DeleteCouponReplyMultiError) AllErrors ¶
func (m DeleteCouponReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteCouponReplyMultiError) Error ¶
func (m DeleteCouponReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteCouponReplyValidationError ¶
type DeleteCouponReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteCouponReplyValidationError is the validation error returned by DeleteCouponReply.Validate if the designated constraints aren't met.
func (DeleteCouponReplyValidationError) Cause ¶
func (e DeleteCouponReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteCouponReplyValidationError) Error ¶
func (e DeleteCouponReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteCouponReplyValidationError) ErrorName ¶
func (e DeleteCouponReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteCouponReplyValidationError) Field ¶
func (e DeleteCouponReplyValidationError) Field() string
Field function returns field value.
func (DeleteCouponReplyValidationError) Key ¶
func (e DeleteCouponReplyValidationError) Key() bool
Key function returns key value.
func (DeleteCouponReplyValidationError) Reason ¶
func (e DeleteCouponReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteCouponRequest ¶
type DeleteCouponRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 优惠券ID
// contains filtered or unexported fields
}
DeleteCouponRequest 删除优惠券请求
func (*DeleteCouponRequest) Descriptor
deprecated
func (*DeleteCouponRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCouponRequest.ProtoReflect.Descriptor instead.
func (*DeleteCouponRequest) GetId ¶
func (x *DeleteCouponRequest) GetId() int64
func (*DeleteCouponRequest) ProtoMessage ¶
func (*DeleteCouponRequest) ProtoMessage()
func (*DeleteCouponRequest) ProtoReflect ¶
func (x *DeleteCouponRequest) ProtoReflect() protoreflect.Message
func (*DeleteCouponRequest) Reset ¶
func (x *DeleteCouponRequest) Reset()
func (*DeleteCouponRequest) String ¶
func (x *DeleteCouponRequest) String() string
func (*DeleteCouponRequest) Validate ¶
func (m *DeleteCouponRequest) Validate() error
Validate checks the field values on DeleteCouponRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteCouponRequest) ValidateAll ¶
func (m *DeleteCouponRequest) ValidateAll() error
ValidateAll checks the field values on DeleteCouponRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteCouponRequestMultiError, or nil if none found.
type DeleteCouponRequestMultiError ¶
type DeleteCouponRequestMultiError []error
DeleteCouponRequestMultiError is an error wrapping multiple validation errors returned by DeleteCouponRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteCouponRequestMultiError) AllErrors ¶
func (m DeleteCouponRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteCouponRequestMultiError) Error ¶
func (m DeleteCouponRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteCouponRequestValidationError ¶
type DeleteCouponRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteCouponRequestValidationError is the validation error returned by DeleteCouponRequest.Validate if the designated constraints aren't met.
func (DeleteCouponRequestValidationError) Cause ¶
func (e DeleteCouponRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteCouponRequestValidationError) Error ¶
func (e DeleteCouponRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteCouponRequestValidationError) ErrorName ¶
func (e DeleteCouponRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteCouponRequestValidationError) Field ¶
func (e DeleteCouponRequestValidationError) Field() string
Field function returns field value.
func (DeleteCouponRequestValidationError) Key ¶
func (e DeleteCouponRequestValidationError) Key() bool
Key function returns key value.
func (DeleteCouponRequestValidationError) Reason ¶
func (e DeleteCouponRequestValidationError) Reason() string
Reason function returns reason value.
type GetCouponListData ¶
type GetCouponListData struct {
List []*CouponItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // 优惠券列表
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // 总数
// contains filtered or unexported fields
}
GetCouponListData 获取优惠券列表数据
func (*GetCouponListData) Descriptor
deprecated
func (*GetCouponListData) Descriptor() ([]byte, []int)
Deprecated: Use GetCouponListData.ProtoReflect.Descriptor instead.
func (*GetCouponListData) GetList ¶
func (x *GetCouponListData) GetList() []*CouponItem
func (*GetCouponListData) GetTotal ¶
func (x *GetCouponListData) GetTotal() int32
func (*GetCouponListData) ProtoMessage ¶
func (*GetCouponListData) ProtoMessage()
func (*GetCouponListData) ProtoReflect ¶
func (x *GetCouponListData) ProtoReflect() protoreflect.Message
func (*GetCouponListData) Reset ¶
func (x *GetCouponListData) Reset()
func (*GetCouponListData) String ¶
func (x *GetCouponListData) String() string
func (*GetCouponListData) Validate ¶
func (m *GetCouponListData) Validate() error
Validate checks the field values on GetCouponListData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCouponListData) ValidateAll ¶
func (m *GetCouponListData) ValidateAll() error
ValidateAll checks the field values on GetCouponListData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCouponListDataMultiError, or nil if none found.
type GetCouponListDataMultiError ¶
type GetCouponListDataMultiError []error
GetCouponListDataMultiError is an error wrapping multiple validation errors returned by GetCouponListData.ValidateAll() if the designated constraints aren't met.
func (GetCouponListDataMultiError) AllErrors ¶
func (m GetCouponListDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCouponListDataMultiError) Error ¶
func (m GetCouponListDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCouponListDataValidationError ¶
type GetCouponListDataValidationError struct {
// contains filtered or unexported fields
}
GetCouponListDataValidationError is the validation error returned by GetCouponListData.Validate if the designated constraints aren't met.
func (GetCouponListDataValidationError) Cause ¶
func (e GetCouponListDataValidationError) Cause() error
Cause function returns cause value.
func (GetCouponListDataValidationError) Error ¶
func (e GetCouponListDataValidationError) Error() string
Error satisfies the builtin error interface
func (GetCouponListDataValidationError) ErrorName ¶
func (e GetCouponListDataValidationError) ErrorName() string
ErrorName returns error name.
func (GetCouponListDataValidationError) Field ¶
func (e GetCouponListDataValidationError) Field() string
Field function returns field value.
func (GetCouponListDataValidationError) Key ¶
func (e GetCouponListDataValidationError) Key() bool
Key function returns key value.
func (GetCouponListDataValidationError) Reason ¶
func (e GetCouponListDataValidationError) Reason() string
Reason function returns reason value.
type GetCouponListReply ¶
type GetCouponListReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
Data *GetCouponListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 响应数据
// contains filtered or unexported fields
}
GetCouponListReply 获取优惠券列表响应
func (*GetCouponListReply) Descriptor
deprecated
func (*GetCouponListReply) Descriptor() ([]byte, []int)
Deprecated: Use GetCouponListReply.ProtoReflect.Descriptor instead.
func (*GetCouponListReply) GetCode ¶
func (x *GetCouponListReply) GetCode() int32
func (*GetCouponListReply) GetData ¶
func (x *GetCouponListReply) GetData() *GetCouponListData
func (*GetCouponListReply) GetMessage ¶
func (x *GetCouponListReply) GetMessage() string
func (*GetCouponListReply) ProtoMessage ¶
func (*GetCouponListReply) ProtoMessage()
func (*GetCouponListReply) ProtoReflect ¶
func (x *GetCouponListReply) ProtoReflect() protoreflect.Message
func (*GetCouponListReply) Reset ¶
func (x *GetCouponListReply) Reset()
func (*GetCouponListReply) String ¶
func (x *GetCouponListReply) String() string
func (*GetCouponListReply) Validate ¶
func (m *GetCouponListReply) Validate() error
Validate checks the field values on GetCouponListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCouponListReply) ValidateAll ¶
func (m *GetCouponListReply) ValidateAll() error
ValidateAll checks the field values on GetCouponListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCouponListReplyMultiError, or nil if none found.
type GetCouponListReplyMultiError ¶
type GetCouponListReplyMultiError []error
GetCouponListReplyMultiError is an error wrapping multiple validation errors returned by GetCouponListReply.ValidateAll() if the designated constraints aren't met.
func (GetCouponListReplyMultiError) AllErrors ¶
func (m GetCouponListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCouponListReplyMultiError) Error ¶
func (m GetCouponListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCouponListReplyValidationError ¶
type GetCouponListReplyValidationError struct {
// contains filtered or unexported fields
}
GetCouponListReplyValidationError is the validation error returned by GetCouponListReply.Validate if the designated constraints aren't met.
func (GetCouponListReplyValidationError) Cause ¶
func (e GetCouponListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetCouponListReplyValidationError) Error ¶
func (e GetCouponListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetCouponListReplyValidationError) ErrorName ¶
func (e GetCouponListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetCouponListReplyValidationError) Field ¶
func (e GetCouponListReplyValidationError) Field() string
Field function returns field value.
func (GetCouponListReplyValidationError) Key ¶
func (e GetCouponListReplyValidationError) Key() bool
Key function returns key value.
func (GetCouponListReplyValidationError) Reason ¶
func (e GetCouponListReplyValidationError) Reason() string
Reason function returns reason value.
type GetCouponListRequest ¶
type GetCouponListRequest struct {
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页码
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 每页数量
Subscribe int64 `protobuf:"varint,3,opt,name=subscribe,proto3" json:"subscribe,omitempty"` // 订阅筛选
Search string `protobuf:"bytes,4,opt,name=search,proto3" json:"search,omitempty"` // 搜索关键字
// contains filtered or unexported fields
}
GetCouponListRequest 获取优惠券列表请求
func (*GetCouponListRequest) Descriptor
deprecated
func (*GetCouponListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCouponListRequest.ProtoReflect.Descriptor instead.
func (*GetCouponListRequest) GetPage ¶
func (x *GetCouponListRequest) GetPage() int64
func (*GetCouponListRequest) GetSearch ¶
func (x *GetCouponListRequest) GetSearch() string
func (*GetCouponListRequest) GetSize ¶
func (x *GetCouponListRequest) GetSize() int64
func (*GetCouponListRequest) GetSubscribe ¶
func (x *GetCouponListRequest) GetSubscribe() int64
func (*GetCouponListRequest) ProtoMessage ¶
func (*GetCouponListRequest) ProtoMessage()
func (*GetCouponListRequest) ProtoReflect ¶
func (x *GetCouponListRequest) ProtoReflect() protoreflect.Message
func (*GetCouponListRequest) Reset ¶
func (x *GetCouponListRequest) Reset()
func (*GetCouponListRequest) String ¶
func (x *GetCouponListRequest) String() string
func (*GetCouponListRequest) Validate ¶
func (m *GetCouponListRequest) Validate() error
Validate checks the field values on GetCouponListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCouponListRequest) ValidateAll ¶
func (m *GetCouponListRequest) ValidateAll() error
ValidateAll checks the field values on GetCouponListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCouponListRequestMultiError, or nil if none found.
type GetCouponListRequestMultiError ¶
type GetCouponListRequestMultiError []error
GetCouponListRequestMultiError is an error wrapping multiple validation errors returned by GetCouponListRequest.ValidateAll() if the designated constraints aren't met.
func (GetCouponListRequestMultiError) AllErrors ¶
func (m GetCouponListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCouponListRequestMultiError) Error ¶
func (m GetCouponListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCouponListRequestValidationError ¶
type GetCouponListRequestValidationError struct {
// contains filtered or unexported fields
}
GetCouponListRequestValidationError is the validation error returned by GetCouponListRequest.Validate if the designated constraints aren't met.
func (GetCouponListRequestValidationError) Cause ¶
func (e GetCouponListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCouponListRequestValidationError) Error ¶
func (e GetCouponListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCouponListRequestValidationError) ErrorName ¶
func (e GetCouponListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCouponListRequestValidationError) Field ¶
func (e GetCouponListRequestValidationError) Field() string
Field function returns field value.
func (GetCouponListRequestValidationError) Key ¶
func (e GetCouponListRequestValidationError) Key() bool
Key function returns key value.
func (GetCouponListRequestValidationError) Reason ¶
func (e GetCouponListRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCouponServiceServer ¶
type UnimplementedCouponServiceServer struct{}
UnimplementedCouponServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCouponServiceServer) BatchDeleteCoupon ¶
func (UnimplementedCouponServiceServer) BatchDeleteCoupon(context.Context, *BatchDeleteCouponRequest) (*BatchDeleteCouponReply, error)
func (UnimplementedCouponServiceServer) CreateCoupon ¶
func (UnimplementedCouponServiceServer) CreateCoupon(context.Context, *CreateCouponRequest) (*CreateCouponReply, error)
func (UnimplementedCouponServiceServer) DeleteCoupon ¶
func (UnimplementedCouponServiceServer) DeleteCoupon(context.Context, *DeleteCouponRequest) (*DeleteCouponReply, error)
func (UnimplementedCouponServiceServer) GetCouponList ¶
func (UnimplementedCouponServiceServer) GetCouponList(context.Context, *GetCouponListRequest) (*GetCouponListReply, error)
func (UnimplementedCouponServiceServer) UpdateCoupon ¶
func (UnimplementedCouponServiceServer) UpdateCoupon(context.Context, *UpdateCouponRequest) (*UpdateCouponReply, error)
type UnsafeCouponServiceServer ¶
type UnsafeCouponServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCouponServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CouponServiceServer will result in compilation errors.
type UpdateCouponReply ¶
type UpdateCouponReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
// contains filtered or unexported fields
}
UpdateCouponReply 更新优惠券响应
func (*UpdateCouponReply) Descriptor
deprecated
func (*UpdateCouponReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCouponReply.ProtoReflect.Descriptor instead.
func (*UpdateCouponReply) GetCode ¶
func (x *UpdateCouponReply) GetCode() int32
func (*UpdateCouponReply) GetMessage ¶
func (x *UpdateCouponReply) GetMessage() string
func (*UpdateCouponReply) ProtoMessage ¶
func (*UpdateCouponReply) ProtoMessage()
func (*UpdateCouponReply) ProtoReflect ¶
func (x *UpdateCouponReply) ProtoReflect() protoreflect.Message
func (*UpdateCouponReply) Reset ¶
func (x *UpdateCouponReply) Reset()
func (*UpdateCouponReply) String ¶
func (x *UpdateCouponReply) String() string
func (*UpdateCouponReply) Validate ¶
func (m *UpdateCouponReply) Validate() error
Validate checks the field values on UpdateCouponReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateCouponReply) ValidateAll ¶
func (m *UpdateCouponReply) ValidateAll() error
ValidateAll checks the field values on UpdateCouponReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateCouponReplyMultiError, or nil if none found.
type UpdateCouponReplyMultiError ¶
type UpdateCouponReplyMultiError []error
UpdateCouponReplyMultiError is an error wrapping multiple validation errors returned by UpdateCouponReply.ValidateAll() if the designated constraints aren't met.
func (UpdateCouponReplyMultiError) AllErrors ¶
func (m UpdateCouponReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCouponReplyMultiError) Error ¶
func (m UpdateCouponReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCouponReplyValidationError ¶
type UpdateCouponReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateCouponReplyValidationError is the validation error returned by UpdateCouponReply.Validate if the designated constraints aren't met.
func (UpdateCouponReplyValidationError) Cause ¶
func (e UpdateCouponReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateCouponReplyValidationError) Error ¶
func (e UpdateCouponReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCouponReplyValidationError) ErrorName ¶
func (e UpdateCouponReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCouponReplyValidationError) Field ¶
func (e UpdateCouponReplyValidationError) Field() string
Field function returns field value.
func (UpdateCouponReplyValidationError) Key ¶
func (e UpdateCouponReplyValidationError) Key() bool
Key function returns key value.
func (UpdateCouponReplyValidationError) Reason ¶
func (e UpdateCouponReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateCouponRequest ¶
type UpdateCouponRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 优惠券ID
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 优惠券名称
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // 优惠券代码
Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // 数量限制
Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` // 类型
Discount int64 `protobuf:"varint,6,opt,name=discount,proto3" json:"discount,omitempty"` // 折扣(分)
StartTime int64 `protobuf:"varint,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // 开始时间
ExpireTime int64 `protobuf:"varint,8,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // 过期时间
UserLimit int64 `protobuf:"varint,9,opt,name=user_limit,json=userLimit,proto3" json:"user_limit,omitempty"` // 用户限制
Subscribe []int64 `protobuf:"varint,10,rep,packed,name=subscribe,proto3" json:"subscribe,omitempty"` // 订阅限制
UsedCount int64 `protobuf:"varint,11,opt,name=used_count,json=usedCount,proto3" json:"used_count,omitempty"` // 已使用数量
Enable *bool `protobuf:"varint,12,opt,name=enable,proto3,oneof" json:"enable,omitempty"` // 启用
// contains filtered or unexported fields
}
UpdateCouponRequest 更新优惠券请求
func (*UpdateCouponRequest) Descriptor
deprecated
func (*UpdateCouponRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCouponRequest.ProtoReflect.Descriptor instead.
func (*UpdateCouponRequest) GetCode ¶
func (x *UpdateCouponRequest) GetCode() string
func (*UpdateCouponRequest) GetCount ¶
func (x *UpdateCouponRequest) GetCount() int64
func (*UpdateCouponRequest) GetDiscount ¶
func (x *UpdateCouponRequest) GetDiscount() int64
func (*UpdateCouponRequest) GetEnable ¶
func (x *UpdateCouponRequest) GetEnable() bool
func (*UpdateCouponRequest) GetExpireTime ¶
func (x *UpdateCouponRequest) GetExpireTime() int64
func (*UpdateCouponRequest) GetId ¶
func (x *UpdateCouponRequest) GetId() int64
func (*UpdateCouponRequest) GetName ¶
func (x *UpdateCouponRequest) GetName() string
func (*UpdateCouponRequest) GetStartTime ¶
func (x *UpdateCouponRequest) GetStartTime() int64
func (*UpdateCouponRequest) GetSubscribe ¶
func (x *UpdateCouponRequest) GetSubscribe() []int64
func (*UpdateCouponRequest) GetType ¶
func (x *UpdateCouponRequest) GetType() int32
func (*UpdateCouponRequest) GetUsedCount ¶
func (x *UpdateCouponRequest) GetUsedCount() int64
func (*UpdateCouponRequest) GetUserLimit ¶
func (x *UpdateCouponRequest) GetUserLimit() int64
func (*UpdateCouponRequest) ProtoMessage ¶
func (*UpdateCouponRequest) ProtoMessage()
func (*UpdateCouponRequest) ProtoReflect ¶
func (x *UpdateCouponRequest) ProtoReflect() protoreflect.Message
func (*UpdateCouponRequest) Reset ¶
func (x *UpdateCouponRequest) Reset()
func (*UpdateCouponRequest) String ¶
func (x *UpdateCouponRequest) String() string
func (*UpdateCouponRequest) Validate ¶
func (m *UpdateCouponRequest) Validate() error
Validate checks the field values on UpdateCouponRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateCouponRequest) ValidateAll ¶
func (m *UpdateCouponRequest) ValidateAll() error
ValidateAll checks the field values on UpdateCouponRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateCouponRequestMultiError, or nil if none found.
type UpdateCouponRequestMultiError ¶
type UpdateCouponRequestMultiError []error
UpdateCouponRequestMultiError is an error wrapping multiple validation errors returned by UpdateCouponRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateCouponRequestMultiError) AllErrors ¶
func (m UpdateCouponRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCouponRequestMultiError) Error ¶
func (m UpdateCouponRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCouponRequestValidationError ¶
type UpdateCouponRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateCouponRequestValidationError is the validation error returned by UpdateCouponRequest.Validate if the designated constraints aren't met.
func (UpdateCouponRequestValidationError) Cause ¶
func (e UpdateCouponRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateCouponRequestValidationError) Error ¶
func (e UpdateCouponRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCouponRequestValidationError) ErrorName ¶
func (e UpdateCouponRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCouponRequestValidationError) Field ¶
func (e UpdateCouponRequestValidationError) Field() string
Field function returns field value.
func (UpdateCouponRequestValidationError) Key ¶
func (e UpdateCouponRequestValidationError) Key() bool
Key function returns key value.
func (UpdateCouponRequestValidationError) Reason ¶
func (e UpdateCouponRequestValidationError) Reason() string
Reason function returns reason value.