v1

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationCouponServiceBatchDeleteCoupon = "/api.admin.coupon.v1.CouponService/BatchDeleteCoupon"
View Source
const OperationCouponServiceCreateCoupon = "/api.admin.coupon.v1.CouponService/CreateCoupon"
View Source
const OperationCouponServiceDeleteCoupon = "/api.admin.coupon.v1.CouponService/DeleteCoupon"
View Source
const OperationCouponServiceGetCouponList = "/api.admin.coupon.v1.CouponService/GetCouponList"
View Source
const OperationCouponServiceUpdateCoupon = "/api.admin.coupon.v1.CouponService/UpdateCoupon"

Variables

View Source
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)

View Source
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

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

Cause function returns cause value.

func (BatchDeleteCouponReplyValidationError) Error

Error satisfies the builtin error interface

func (BatchDeleteCouponReplyValidationError) ErrorName

ErrorName returns error name.

func (BatchDeleteCouponReplyValidationError) Field

Field function returns field value.

func (BatchDeleteCouponReplyValidationError) Key

Key function returns key value.

func (BatchDeleteCouponReplyValidationError) Reason

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

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

Cause function returns cause value.

func (BatchDeleteCouponRequestValidationError) Error

Error satisfies the builtin error interface

func (BatchDeleteCouponRequestValidationError) ErrorName

ErrorName returns error name.

func (BatchDeleteCouponRequestValidationError) Field

Field function returns field value.

func (BatchDeleteCouponRequestValidationError) Key

Key function returns key value.

func (BatchDeleteCouponRequestValidationError) Reason

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

Error satisfies the builtin error interface

func (CouponItemValidationError) ErrorName

func (e CouponItemValidationError) ErrorName() string

ErrorName returns error name.

func (CouponItemValidationError) Field

Field function returns field value.

func (CouponItemValidationError) Key

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.

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

BatchDeleteCoupon BatchDeleteCoupon 批量删除优惠券

func (*CouponServiceHTTPClientImpl) CreateCoupon

CreateCoupon CreateCoupon 创建优惠券

func (*CouponServiceHTTPClientImpl) DeleteCoupon

DeleteCoupon DeleteCoupon 删除优惠券

func (*CouponServiceHTTPClientImpl) GetCouponList

GetCouponList GetCouponList 获取优惠券列表

func (*CouponServiceHTTPClientImpl) UpdateCoupon

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

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

Cause function returns cause value.

func (CreateCouponReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateCouponReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateCouponReplyValidationError) Field

Field function returns field value.

func (CreateCouponReplyValidationError) Key

Key function returns key value.

func (CreateCouponReplyValidationError) Reason

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

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

Cause function returns cause value.

func (CreateCouponRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateCouponRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateCouponRequestValidationError) Field

Field function returns field value.

func (CreateCouponRequestValidationError) Key

Key function returns key value.

func (CreateCouponRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteCouponReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteCouponReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteCouponReplyValidationError) Field

Field function returns field value.

func (DeleteCouponReplyValidationError) Key

Key function returns key value.

func (DeleteCouponReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteCouponRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteCouponRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteCouponRequestValidationError) Field

Field function returns field value.

func (DeleteCouponRequestValidationError) Key

Key function returns key value.

func (DeleteCouponRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetCouponListDataValidationError) Error

Error satisfies the builtin error interface

func (GetCouponListDataValidationError) ErrorName

ErrorName returns error name.

func (GetCouponListDataValidationError) Field

Field function returns field value.

func (GetCouponListDataValidationError) Key

Key function returns key value.

func (GetCouponListDataValidationError) Reason

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

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

Cause function returns cause value.

func (GetCouponListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetCouponListReplyValidationError) ErrorName

ErrorName returns error name.

func (GetCouponListReplyValidationError) Field

Field function returns field value.

func (GetCouponListReplyValidationError) Key

Key function returns key value.

func (GetCouponListReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetCouponListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCouponListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCouponListRequestValidationError) Field

Field function returns field value.

func (GetCouponListRequestValidationError) Key

Key function returns key value.

func (GetCouponListRequestValidationError) Reason

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) CreateCoupon

func (UnimplementedCouponServiceServer) DeleteCoupon

func (UnimplementedCouponServiceServer) GetCouponList

func (UnimplementedCouponServiceServer) UpdateCoupon

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

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

Cause function returns cause value.

func (UpdateCouponReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateCouponReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateCouponReplyValidationError) Field

Field function returns field value.

func (UpdateCouponReplyValidationError) Key

Key function returns key value.

func (UpdateCouponReplyValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateCouponRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCouponRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCouponRequestValidationError) Field

Field function returns field value.

func (UpdateCouponRequestValidationError) Key

Key function returns key value.

func (UpdateCouponRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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