Versions in this module Expand all Collapse all v1 v1.0.11 Jun 28, 2026 v1.0.10 Jun 26, 2026 v1.0.9 Jun 25, 2026 v1.0.8 Jun 24, 2026 v1.0.7 Jun 23, 2026 Changes in this version + const CouponService_BatchDeleteCoupon_FullMethodName + const CouponService_CreateCoupon_FullMethodName + const CouponService_DeleteCoupon_FullMethodName + const CouponService_GetCouponList_FullMethodName + const CouponService_UpdateCoupon_FullMethodName + const OperationCouponServiceBatchDeleteCoupon + const OperationCouponServiceCreateCoupon + const OperationCouponServiceDeleteCoupon + const OperationCouponServiceGetCouponList + const OperationCouponServiceUpdateCoupon + var CouponService_ServiceDesc = grpc.ServiceDesc + var File_admin_coupon_v1_coupon_proto protoreflect.FileDescriptor + func RegisterCouponServiceHTTPServer(s *http.Server, srv CouponServiceHTTPServer) + func RegisterCouponServiceServer(s grpc.ServiceRegistrar, srv CouponServiceServer) + type BatchDeleteCouponReply struct + Code int32 + Message string + func (*BatchDeleteCouponReply) Descriptor() ([]byte, []int) + func (*BatchDeleteCouponReply) ProtoMessage() + func (m *BatchDeleteCouponReply) Validate() error + func (m *BatchDeleteCouponReply) ValidateAll() error + func (x *BatchDeleteCouponReply) GetCode() int32 + func (x *BatchDeleteCouponReply) GetMessage() string + func (x *BatchDeleteCouponReply) ProtoReflect() protoreflect.Message + func (x *BatchDeleteCouponReply) Reset() + func (x *BatchDeleteCouponReply) String() string + type BatchDeleteCouponReplyMultiError []error + func (m BatchDeleteCouponReplyMultiError) AllErrors() []error + func (m BatchDeleteCouponReplyMultiError) Error() string + type BatchDeleteCouponReplyValidationError struct + 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 struct + Ids []int64 + func (*BatchDeleteCouponRequest) Descriptor() ([]byte, []int) + func (*BatchDeleteCouponRequest) ProtoMessage() + func (m *BatchDeleteCouponRequest) Validate() error + func (m *BatchDeleteCouponRequest) ValidateAll() error + func (x *BatchDeleteCouponRequest) GetIds() []int64 + func (x *BatchDeleteCouponRequest) ProtoReflect() protoreflect.Message + func (x *BatchDeleteCouponRequest) Reset() + func (x *BatchDeleteCouponRequest) String() string + type BatchDeleteCouponRequestMultiError []error + func (m BatchDeleteCouponRequestMultiError) AllErrors() []error + func (m BatchDeleteCouponRequestMultiError) Error() string + type BatchDeleteCouponRequestValidationError struct + 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 struct + Code string + Count int64 + CreatedAt int64 + Discount int64 + Enable bool + ExpireTime int64 + Id int64 + Name string + StartTime int64 + Subscribe []int64 + Type int32 + UpdatedAt int64 + UsedCount int64 + UserLimit int64 + func (*CouponItem) Descriptor() ([]byte, []int) + func (*CouponItem) ProtoMessage() + func (m *CouponItem) Validate() error + func (m *CouponItem) ValidateAll() error + 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 (x *CouponItem) ProtoReflect() protoreflect.Message + func (x *CouponItem) Reset() + func (x *CouponItem) String() string + type CouponItemMultiError []error + func (m CouponItemMultiError) AllErrors() []error + func (m CouponItemMultiError) Error() string + type CouponItemValidationError struct + func (e CouponItemValidationError) Cause() error + func (e CouponItemValidationError) Error() string + func (e CouponItemValidationError) ErrorName() string + func (e CouponItemValidationError) Field() string + func (e CouponItemValidationError) Key() bool + func (e CouponItemValidationError) Reason() string + type CouponServiceClient interface + BatchDeleteCoupon func(ctx context.Context, in *BatchDeleteCouponRequest, opts ...grpc.CallOption) (*BatchDeleteCouponReply, error) + CreateCoupon func(ctx context.Context, in *CreateCouponRequest, opts ...grpc.CallOption) (*CreateCouponReply, error) + DeleteCoupon func(ctx context.Context, in *DeleteCouponRequest, opts ...grpc.CallOption) (*DeleteCouponReply, error) + GetCouponList func(ctx context.Context, in *GetCouponListRequest, opts ...grpc.CallOption) (*GetCouponListReply, error) + UpdateCoupon func(ctx context.Context, in *UpdateCouponRequest, opts ...grpc.CallOption) (*UpdateCouponReply, error) + func NewCouponServiceClient(cc grpc.ClientConnInterface) CouponServiceClient + type CouponServiceHTTPClient interface + BatchDeleteCoupon func(ctx context.Context, req *BatchDeleteCouponRequest, opts ...http.CallOption) (rsp *BatchDeleteCouponReply, err error) + CreateCoupon func(ctx context.Context, req *CreateCouponRequest, opts ...http.CallOption) (rsp *CreateCouponReply, err error) + DeleteCoupon func(ctx context.Context, req *DeleteCouponRequest, opts ...http.CallOption) (rsp *DeleteCouponReply, err error) + GetCouponList func(ctx context.Context, req *GetCouponListRequest, opts ...http.CallOption) (rsp *GetCouponListReply, err error) + UpdateCoupon func(ctx context.Context, req *UpdateCouponRequest, opts ...http.CallOption) (rsp *UpdateCouponReply, err error) + func NewCouponServiceHTTPClient(client *http.Client) CouponServiceHTTPClient + type CouponServiceHTTPClientImpl struct + 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 interface + BatchDeleteCoupon func(context.Context, *BatchDeleteCouponRequest) (*BatchDeleteCouponReply, error) + CreateCoupon func(context.Context, *CreateCouponRequest) (*CreateCouponReply, error) + DeleteCoupon func(context.Context, *DeleteCouponRequest) (*DeleteCouponReply, error) + GetCouponList func(context.Context, *GetCouponListRequest) (*GetCouponListReply, error) + UpdateCoupon func(context.Context, *UpdateCouponRequest) (*UpdateCouponReply, error) + type CouponServiceServer interface + BatchDeleteCoupon func(context.Context, *BatchDeleteCouponRequest) (*BatchDeleteCouponReply, error) + CreateCoupon func(context.Context, *CreateCouponRequest) (*CreateCouponReply, error) + DeleteCoupon func(context.Context, *DeleteCouponRequest) (*DeleteCouponReply, error) + GetCouponList func(context.Context, *GetCouponListRequest) (*GetCouponListReply, error) + UpdateCoupon func(context.Context, *UpdateCouponRequest) (*UpdateCouponReply, error) + type CreateCouponReply struct + Code int32 + Message string + func (*CreateCouponReply) Descriptor() ([]byte, []int) + func (*CreateCouponReply) ProtoMessage() + func (m *CreateCouponReply) Validate() error + func (m *CreateCouponReply) ValidateAll() error + func (x *CreateCouponReply) GetCode() int32 + func (x *CreateCouponReply) GetMessage() string + func (x *CreateCouponReply) ProtoReflect() protoreflect.Message + func (x *CreateCouponReply) Reset() + func (x *CreateCouponReply) String() string + type CreateCouponReplyMultiError []error + func (m CreateCouponReplyMultiError) AllErrors() []error + func (m CreateCouponReplyMultiError) Error() string + type CreateCouponReplyValidationError struct + 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 struct + Code string + Count int64 + Discount int64 + Enable *bool + ExpireTime int64 + Name string + StartTime int64 + Subscribe []int64 + Type int32 + UsedCount int64 + UserLimit int64 + func (*CreateCouponRequest) Descriptor() ([]byte, []int) + func (*CreateCouponRequest) ProtoMessage() + func (m *CreateCouponRequest) Validate() error + func (m *CreateCouponRequest) ValidateAll() error + 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 (x *CreateCouponRequest) ProtoReflect() protoreflect.Message + func (x *CreateCouponRequest) Reset() + func (x *CreateCouponRequest) String() string + type CreateCouponRequestMultiError []error + func (m CreateCouponRequestMultiError) AllErrors() []error + func (m CreateCouponRequestMultiError) Error() string + type CreateCouponRequestValidationError struct + 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 struct + Code int32 + Message string + func (*DeleteCouponReply) Descriptor() ([]byte, []int) + func (*DeleteCouponReply) ProtoMessage() + func (m *DeleteCouponReply) Validate() error + func (m *DeleteCouponReply) ValidateAll() error + func (x *DeleteCouponReply) GetCode() int32 + func (x *DeleteCouponReply) GetMessage() string + func (x *DeleteCouponReply) ProtoReflect() protoreflect.Message + func (x *DeleteCouponReply) Reset() + func (x *DeleteCouponReply) String() string + type DeleteCouponReplyMultiError []error + func (m DeleteCouponReplyMultiError) AllErrors() []error + func (m DeleteCouponReplyMultiError) Error() string + type DeleteCouponReplyValidationError struct + 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 struct + Id int64 + func (*DeleteCouponRequest) Descriptor() ([]byte, []int) + func (*DeleteCouponRequest) ProtoMessage() + func (m *DeleteCouponRequest) Validate() error + func (m *DeleteCouponRequest) ValidateAll() error + func (x *DeleteCouponRequest) GetId() int64 + func (x *DeleteCouponRequest) ProtoReflect() protoreflect.Message + func (x *DeleteCouponRequest) Reset() + func (x *DeleteCouponRequest) String() string + type DeleteCouponRequestMultiError []error + func (m DeleteCouponRequestMultiError) AllErrors() []error + func (m DeleteCouponRequestMultiError) Error() string + type DeleteCouponRequestValidationError struct + 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 struct + List []*CouponItem + Total int32 + func (*GetCouponListData) Descriptor() ([]byte, []int) + func (*GetCouponListData) ProtoMessage() + func (m *GetCouponListData) Validate() error + func (m *GetCouponListData) ValidateAll() error + func (x *GetCouponListData) GetList() []*CouponItem + func (x *GetCouponListData) GetTotal() int32 + func (x *GetCouponListData) ProtoReflect() protoreflect.Message + func (x *GetCouponListData) Reset() + func (x *GetCouponListData) String() string + type GetCouponListDataMultiError []error + func (m GetCouponListDataMultiError) AllErrors() []error + func (m GetCouponListDataMultiError) Error() string + type GetCouponListDataValidationError struct + 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 struct + Code int32 + Data *GetCouponListData + Message string + func (*GetCouponListReply) Descriptor() ([]byte, []int) + func (*GetCouponListReply) ProtoMessage() + func (m *GetCouponListReply) Validate() error + func (m *GetCouponListReply) ValidateAll() error + func (x *GetCouponListReply) GetCode() int32 + func (x *GetCouponListReply) GetData() *GetCouponListData + func (x *GetCouponListReply) GetMessage() string + func (x *GetCouponListReply) ProtoReflect() protoreflect.Message + func (x *GetCouponListReply) Reset() + func (x *GetCouponListReply) String() string + type GetCouponListReplyMultiError []error + func (m GetCouponListReplyMultiError) AllErrors() []error + func (m GetCouponListReplyMultiError) Error() string + type GetCouponListReplyValidationError struct + 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 struct + Page int64 + Search string + Size int64 + Subscribe int64 + func (*GetCouponListRequest) Descriptor() ([]byte, []int) + func (*GetCouponListRequest) ProtoMessage() + func (m *GetCouponListRequest) Validate() error + func (m *GetCouponListRequest) ValidateAll() error + func (x *GetCouponListRequest) GetPage() int64 + func (x *GetCouponListRequest) GetSearch() string + func (x *GetCouponListRequest) GetSize() int64 + func (x *GetCouponListRequest) GetSubscribe() int64 + func (x *GetCouponListRequest) ProtoReflect() protoreflect.Message + func (x *GetCouponListRequest) Reset() + func (x *GetCouponListRequest) String() string + type GetCouponListRequestMultiError []error + func (m GetCouponListRequestMultiError) AllErrors() []error + func (m GetCouponListRequestMultiError) Error() string + type GetCouponListRequestValidationError struct + 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 struct + 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 interface + type UpdateCouponReply struct + Code int32 + Message string + func (*UpdateCouponReply) Descriptor() ([]byte, []int) + func (*UpdateCouponReply) ProtoMessage() + func (m *UpdateCouponReply) Validate() error + func (m *UpdateCouponReply) ValidateAll() error + func (x *UpdateCouponReply) GetCode() int32 + func (x *UpdateCouponReply) GetMessage() string + func (x *UpdateCouponReply) ProtoReflect() protoreflect.Message + func (x *UpdateCouponReply) Reset() + func (x *UpdateCouponReply) String() string + type UpdateCouponReplyMultiError []error + func (m UpdateCouponReplyMultiError) AllErrors() []error + func (m UpdateCouponReplyMultiError) Error() string + type UpdateCouponReplyValidationError struct + 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 struct + Code string + Count int64 + Discount int64 + Enable *bool + ExpireTime int64 + Id int64 + Name string + StartTime int64 + Subscribe []int64 + Type int32 + UsedCount int64 + UserLimit int64 + func (*UpdateCouponRequest) Descriptor() ([]byte, []int) + func (*UpdateCouponRequest) ProtoMessage() + func (m *UpdateCouponRequest) Validate() error + func (m *UpdateCouponRequest) ValidateAll() error + 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 (x *UpdateCouponRequest) ProtoReflect() protoreflect.Message + func (x *UpdateCouponRequest) Reset() + func (x *UpdateCouponRequest) String() string + type UpdateCouponRequestMultiError []error + func (m UpdateCouponRequestMultiError) AllErrors() []error + func (m UpdateCouponRequestMultiError) Error() string + type UpdateCouponRequestValidationError struct + 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