mcms

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Mcms_InitDatabase_FullMethodName         = "/mcms.Mcms/initDatabase"
	Mcms_SendEmail_FullMethodName            = "/mcms.Mcms/sendEmail"
	Mcms_CreateEmailLog_FullMethodName       = "/mcms.Mcms/createEmailLog"
	Mcms_UpdateEmailLog_FullMethodName       = "/mcms.Mcms/updateEmailLog"
	Mcms_GetEmailLogList_FullMethodName      = "/mcms.Mcms/getEmailLogList"
	Mcms_GetEmailLogById_FullMethodName      = "/mcms.Mcms/getEmailLogById"
	Mcms_DeleteEmailLog_FullMethodName       = "/mcms.Mcms/deleteEmailLog"
	Mcms_CreateEmailProvider_FullMethodName  = "/mcms.Mcms/createEmailProvider"
	Mcms_UpdateEmailProvider_FullMethodName  = "/mcms.Mcms/updateEmailProvider"
	Mcms_GetEmailProviderList_FullMethodName = "/mcms.Mcms/getEmailProviderList"
	Mcms_GetEmailProviderById_FullMethodName = "/mcms.Mcms/getEmailProviderById"
	Mcms_DeleteEmailProvider_FullMethodName  = "/mcms.Mcms/deleteEmailProvider"
	Mcms_SendSms_FullMethodName              = "/mcms.Mcms/sendSms"
	Mcms_CreateSmsLog_FullMethodName         = "/mcms.Mcms/createSmsLog"
	Mcms_UpdateSmsLog_FullMethodName         = "/mcms.Mcms/updateSmsLog"
	Mcms_GetSmsLogList_FullMethodName        = "/mcms.Mcms/getSmsLogList"
	Mcms_GetSmsLogById_FullMethodName        = "/mcms.Mcms/getSmsLogById"
	Mcms_DeleteSmsLog_FullMethodName         = "/mcms.Mcms/deleteSmsLog"
	Mcms_CreateSmsProvider_FullMethodName    = "/mcms.Mcms/createSmsProvider"
	Mcms_UpdateSmsProvider_FullMethodName    = "/mcms.Mcms/updateSmsProvider"
	Mcms_GetSmsProviderList_FullMethodName   = "/mcms.Mcms/getSmsProviderList"
	Mcms_GetSmsProviderById_FullMethodName   = "/mcms.Mcms/getSmsProviderById"
	Mcms_DeleteSmsProvider_FullMethodName    = "/mcms.Mcms/deleteSmsProvider"
)

Variables

View Source
var Mcms_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mcms.Mcms",
	HandlerType: (*McmsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "initDatabase",
			Handler:    _Mcms_InitDatabase_Handler,
		},
		{
			MethodName: "sendEmail",
			Handler:    _Mcms_SendEmail_Handler,
		},
		{
			MethodName: "createEmailLog",
			Handler:    _Mcms_CreateEmailLog_Handler,
		},
		{
			MethodName: "updateEmailLog",
			Handler:    _Mcms_UpdateEmailLog_Handler,
		},
		{
			MethodName: "getEmailLogList",
			Handler:    _Mcms_GetEmailLogList_Handler,
		},
		{
			MethodName: "getEmailLogById",
			Handler:    _Mcms_GetEmailLogById_Handler,
		},
		{
			MethodName: "deleteEmailLog",
			Handler:    _Mcms_DeleteEmailLog_Handler,
		},
		{
			MethodName: "createEmailProvider",
			Handler:    _Mcms_CreateEmailProvider_Handler,
		},
		{
			MethodName: "updateEmailProvider",
			Handler:    _Mcms_UpdateEmailProvider_Handler,
		},
		{
			MethodName: "getEmailProviderList",
			Handler:    _Mcms_GetEmailProviderList_Handler,
		},
		{
			MethodName: "getEmailProviderById",
			Handler:    _Mcms_GetEmailProviderById_Handler,
		},
		{
			MethodName: "deleteEmailProvider",
			Handler:    _Mcms_DeleteEmailProvider_Handler,
		},
		{
			MethodName: "sendSms",
			Handler:    _Mcms_SendSms_Handler,
		},
		{
			MethodName: "createSmsLog",
			Handler:    _Mcms_CreateSmsLog_Handler,
		},
		{
			MethodName: "updateSmsLog",
			Handler:    _Mcms_UpdateSmsLog_Handler,
		},
		{
			MethodName: "getSmsLogList",
			Handler:    _Mcms_GetSmsLogList_Handler,
		},
		{
			MethodName: "getSmsLogById",
			Handler:    _Mcms_GetSmsLogById_Handler,
		},
		{
			MethodName: "deleteSmsLog",
			Handler:    _Mcms_DeleteSmsLog_Handler,
		},
		{
			MethodName: "createSmsProvider",
			Handler:    _Mcms_CreateSmsProvider_Handler,
		},
		{
			MethodName: "updateSmsProvider",
			Handler:    _Mcms_UpdateSmsProvider_Handler,
		},
		{
			MethodName: "getSmsProviderList",
			Handler:    _Mcms_GetSmsProviderList_Handler,
		},
		{
			MethodName: "getSmsProviderById",
			Handler:    _Mcms_GetSmsProviderById_Handler,
		},
		{
			MethodName: "deleteSmsProvider",
			Handler:    _Mcms_DeleteSmsProvider_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "mcms.proto",
}

Mcms_ServiceDesc is the grpc.ServiceDesc for Mcms service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMcmsServer

func RegisterMcmsServer(s grpc.ServiceRegistrar, srv McmsServer)

Types

type BaseIDResp

type BaseIDResp struct {
	Id  uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
	// contains filtered or unexported fields
}

func (*BaseIDResp) Descriptor deprecated

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

Deprecated: Use BaseIDResp.ProtoReflect.Descriptor instead.

func (*BaseIDResp) GetId

func (x *BaseIDResp) GetId() uint64

func (*BaseIDResp) GetMsg

func (x *BaseIDResp) GetMsg() string

func (*BaseIDResp) ProtoMessage

func (*BaseIDResp) ProtoMessage()

func (*BaseIDResp) ProtoReflect

func (x *BaseIDResp) ProtoReflect() protoreflect.Message

func (*BaseIDResp) Reset

func (x *BaseIDResp) Reset()

func (*BaseIDResp) String

func (x *BaseIDResp) String() string

type BaseResp

type BaseResp struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"`
	// contains filtered or unexported fields
}

func (*BaseResp) Descriptor deprecated

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

Deprecated: Use BaseResp.ProtoReflect.Descriptor instead.

func (*BaseResp) GetMsg

func (x *BaseResp) GetMsg() string

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) ProtoReflect

func (x *BaseResp) ProtoReflect() protoreflect.Message

func (*BaseResp) Reset

func (x *BaseResp) Reset()

func (*BaseResp) String

func (x *BaseResp) String() string

type BaseUUIDResp

type BaseUUIDResp struct {
	Id  string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
	// contains filtered or unexported fields
}

func (*BaseUUIDResp) Descriptor deprecated

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

Deprecated: Use BaseUUIDResp.ProtoReflect.Descriptor instead.

func (*BaseUUIDResp) GetId

func (x *BaseUUIDResp) GetId() string

func (*BaseUUIDResp) GetMsg

func (x *BaseUUIDResp) GetMsg() string

func (*BaseUUIDResp) ProtoMessage

func (*BaseUUIDResp) ProtoMessage()

func (*BaseUUIDResp) ProtoReflect

func (x *BaseUUIDResp) ProtoReflect() protoreflect.Message

func (*BaseUUIDResp) Reset

func (x *BaseUUIDResp) Reset()

func (*BaseUUIDResp) String

func (x *BaseUUIDResp) String() string

type EmailInfo

type EmailInfo struct {
	Target   []string `protobuf:"bytes,1,rep,name=target,proto3" json:"target"`
	Subject  string   `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject"`
	Content  string   `protobuf:"bytes,3,opt,name=content,proto3" json:"content"`
	Provider *string  `protobuf:"bytes,4,opt,name=provider,proto3,oneof" json:"provider"`
	// contains filtered or unexported fields
}

func (*EmailInfo) Descriptor deprecated

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

Deprecated: Use EmailInfo.ProtoReflect.Descriptor instead.

func (*EmailInfo) GetContent

func (x *EmailInfo) GetContent() string

func (*EmailInfo) GetProvider

func (x *EmailInfo) GetProvider() string

func (*EmailInfo) GetSubject

func (x *EmailInfo) GetSubject() string

func (*EmailInfo) GetTarget

func (x *EmailInfo) GetTarget() []string

func (*EmailInfo) ProtoMessage

func (*EmailInfo) ProtoMessage()

func (*EmailInfo) ProtoReflect

func (x *EmailInfo) ProtoReflect() protoreflect.Message

func (*EmailInfo) Reset

func (x *EmailInfo) Reset()

func (*EmailInfo) String

func (x *EmailInfo) String() string

type EmailLogInfo

type EmailLogInfo struct {
	Id         *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id"`
	CreatedAt  *int64  `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at"`
	UpdatedAt  *int64  `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at"`
	Target     *string `protobuf:"bytes,4,opt,name=target,proto3,oneof" json:"target"`
	Subject    *string `protobuf:"bytes,5,opt,name=subject,proto3,oneof" json:"subject"`
	Content    *string `protobuf:"bytes,6,opt,name=content,proto3,oneof" json:"content"`
	SendStatus *uint32 `protobuf:"varint,7,opt,name=send_status,json=sendStatus,proto3,oneof" json:"send_status"`
	Provider   *string `protobuf:"bytes,8,opt,name=provider,proto3,oneof" json:"provider"`
	// contains filtered or unexported fields
}

func (*EmailLogInfo) Descriptor deprecated

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

Deprecated: Use EmailLogInfo.ProtoReflect.Descriptor instead.

func (*EmailLogInfo) GetContent

func (x *EmailLogInfo) GetContent() string

func (*EmailLogInfo) GetCreatedAt

func (x *EmailLogInfo) GetCreatedAt() int64

func (*EmailLogInfo) GetId

func (x *EmailLogInfo) GetId() string

func (*EmailLogInfo) GetProvider

func (x *EmailLogInfo) GetProvider() string

func (*EmailLogInfo) GetSendStatus

func (x *EmailLogInfo) GetSendStatus() uint32

func (*EmailLogInfo) GetSubject

func (x *EmailLogInfo) GetSubject() string

func (*EmailLogInfo) GetTarget

func (x *EmailLogInfo) GetTarget() string

func (*EmailLogInfo) GetUpdatedAt

func (x *EmailLogInfo) GetUpdatedAt() int64

func (*EmailLogInfo) ProtoMessage

func (*EmailLogInfo) ProtoMessage()

func (*EmailLogInfo) ProtoReflect

func (x *EmailLogInfo) ProtoReflect() protoreflect.Message

func (*EmailLogInfo) Reset

func (x *EmailLogInfo) Reset()

func (*EmailLogInfo) String

func (x *EmailLogInfo) String() string

type EmailLogListReq

type EmailLogListReq struct {
	Page       uint64  `protobuf:"varint,1,opt,name=page,proto3" json:"page"`
	PageSize   uint64  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
	Target     *string `protobuf:"bytes,3,opt,name=target,proto3,oneof" json:"target"`
	Subject    *string `protobuf:"bytes,4,opt,name=subject,proto3,oneof" json:"subject"`
	Provider   *string `protobuf:"bytes,5,opt,name=provider,proto3,oneof" json:"provider"`
	SendStatus *uint32 `protobuf:"varint,6,opt,name=send_status,json=sendStatus,proto3,oneof" json:"send_status"`
	// contains filtered or unexported fields
}

func (*EmailLogListReq) Descriptor deprecated

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

Deprecated: Use EmailLogListReq.ProtoReflect.Descriptor instead.

func (*EmailLogListReq) GetPage

func (x *EmailLogListReq) GetPage() uint64

func (*EmailLogListReq) GetPageSize

func (x *EmailLogListReq) GetPageSize() uint64

func (*EmailLogListReq) GetProvider

func (x *EmailLogListReq) GetProvider() string

func (*EmailLogListReq) GetSendStatus

func (x *EmailLogListReq) GetSendStatus() uint32

func (*EmailLogListReq) GetSubject

func (x *EmailLogListReq) GetSubject() string

func (*EmailLogListReq) GetTarget

func (x *EmailLogListReq) GetTarget() string

func (*EmailLogListReq) ProtoMessage

func (*EmailLogListReq) ProtoMessage()

func (*EmailLogListReq) ProtoReflect

func (x *EmailLogListReq) ProtoReflect() protoreflect.Message

func (*EmailLogListReq) Reset

func (x *EmailLogListReq) Reset()

func (*EmailLogListReq) String

func (x *EmailLogListReq) String() string

type EmailLogListResp

type EmailLogListResp struct {
	Total uint64          `protobuf:"varint,1,opt,name=total,proto3" json:"total"`
	Data  []*EmailLogInfo `protobuf:"bytes,2,rep,name=data,proto3" json:"data"`
	// contains filtered or unexported fields
}

func (*EmailLogListResp) Descriptor deprecated

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

Deprecated: Use EmailLogListResp.ProtoReflect.Descriptor instead.

func (*EmailLogListResp) GetData

func (x *EmailLogListResp) GetData() []*EmailLogInfo

func (*EmailLogListResp) GetTotal

func (x *EmailLogListResp) GetTotal() uint64

func (*EmailLogListResp) ProtoMessage

func (*EmailLogListResp) ProtoMessage()

func (*EmailLogListResp) ProtoReflect

func (x *EmailLogListResp) ProtoReflect() protoreflect.Message

func (*EmailLogListResp) Reset

func (x *EmailLogListResp) Reset()

func (*EmailLogListResp) String

func (x *EmailLogListResp) String() string

type EmailProviderInfo

type EmailProviderInfo struct {
	Id        *uint64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id"`
	CreatedAt *int64  `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at"`
	UpdatedAt *int64  `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at"`
	Name      *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name"`
	AuthType  *uint32 `protobuf:"varint,5,opt,name=auth_type,json=authType,proto3,oneof" json:"auth_type"`
	EmailAddr *string `protobuf:"bytes,6,opt,name=email_addr,json=emailAddr,proto3,oneof" json:"email_addr"`
	Password  *string `protobuf:"bytes,7,opt,name=password,proto3,oneof" json:"password"`
	HostName  *string `protobuf:"bytes,8,opt,name=host_name,json=hostName,proto3,oneof" json:"host_name"`
	Identify  *string `protobuf:"bytes,9,opt,name=identify,proto3,oneof" json:"identify"`
	Secret    *string `protobuf:"bytes,10,opt,name=secret,proto3,oneof" json:"secret"`
	Port      *uint32 `protobuf:"varint,11,opt,name=port,proto3,oneof" json:"port"`
	Tls       *bool   `protobuf:"varint,12,opt,name=tls,proto3,oneof" json:"tls"`
	IsDefault *bool   `protobuf:"varint,13,opt,name=is_default,json=isDefault,proto3,oneof" json:"is_default"`
	// contains filtered or unexported fields
}

func (*EmailProviderInfo) Descriptor deprecated

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

Deprecated: Use EmailProviderInfo.ProtoReflect.Descriptor instead.

func (*EmailProviderInfo) GetAuthType

func (x *EmailProviderInfo) GetAuthType() uint32

func (*EmailProviderInfo) GetCreatedAt

func (x *EmailProviderInfo) GetCreatedAt() int64

func (*EmailProviderInfo) GetEmailAddr

func (x *EmailProviderInfo) GetEmailAddr() string

func (*EmailProviderInfo) GetHostName

func (x *EmailProviderInfo) GetHostName() string

func (*EmailProviderInfo) GetId

func (x *EmailProviderInfo) GetId() uint64

func (*EmailProviderInfo) GetIdentify

func (x *EmailProviderInfo) GetIdentify() string

func (*EmailProviderInfo) GetIsDefault

func (x *EmailProviderInfo) GetIsDefault() bool

func (*EmailProviderInfo) GetName

func (x *EmailProviderInfo) GetName() string

func (*EmailProviderInfo) GetPassword

func (x *EmailProviderInfo) GetPassword() string

func (*EmailProviderInfo) GetPort

func (x *EmailProviderInfo) GetPort() uint32

func (*EmailProviderInfo) GetSecret

func (x *EmailProviderInfo) GetSecret() string

func (*EmailProviderInfo) GetTls

func (x *EmailProviderInfo) GetTls() bool

func (*EmailProviderInfo) GetUpdatedAt

func (x *EmailProviderInfo) GetUpdatedAt() int64

func (*EmailProviderInfo) ProtoMessage

func (*EmailProviderInfo) ProtoMessage()

func (*EmailProviderInfo) ProtoReflect

func (x *EmailProviderInfo) ProtoReflect() protoreflect.Message

func (*EmailProviderInfo) Reset

func (x *EmailProviderInfo) Reset()

func (*EmailProviderInfo) String

func (x *EmailProviderInfo) String() string

type EmailProviderListReq

type EmailProviderListReq struct {
	Page      uint64  `protobuf:"varint,1,opt,name=page,proto3" json:"page"`
	PageSize  uint64  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
	Name      *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name"`
	EmailAddr *string `protobuf:"bytes,4,opt,name=email_addr,json=emailAddr,proto3,oneof" json:"email_addr"`
	// contains filtered or unexported fields
}

func (*EmailProviderListReq) Descriptor deprecated

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

Deprecated: Use EmailProviderListReq.ProtoReflect.Descriptor instead.

func (*EmailProviderListReq) GetEmailAddr

func (x *EmailProviderListReq) GetEmailAddr() string

func (*EmailProviderListReq) GetName

func (x *EmailProviderListReq) GetName() string

func (*EmailProviderListReq) GetPage

func (x *EmailProviderListReq) GetPage() uint64

func (*EmailProviderListReq) GetPageSize

func (x *EmailProviderListReq) GetPageSize() uint64

func (*EmailProviderListReq) ProtoMessage

func (*EmailProviderListReq) ProtoMessage()

func (*EmailProviderListReq) ProtoReflect

func (x *EmailProviderListReq) ProtoReflect() protoreflect.Message

func (*EmailProviderListReq) Reset

func (x *EmailProviderListReq) Reset()

func (*EmailProviderListReq) String

func (x *EmailProviderListReq) String() string

type EmailProviderListResp

type EmailProviderListResp struct {
	Total uint64               `protobuf:"varint,1,opt,name=total,proto3" json:"total"`
	Data  []*EmailProviderInfo `protobuf:"bytes,2,rep,name=data,proto3" json:"data"`
	// contains filtered or unexported fields
}

func (*EmailProviderListResp) Descriptor deprecated

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

Deprecated: Use EmailProviderListResp.ProtoReflect.Descriptor instead.

func (*EmailProviderListResp) GetData

func (x *EmailProviderListResp) GetData() []*EmailProviderInfo

func (*EmailProviderListResp) GetTotal

func (x *EmailProviderListResp) GetTotal() uint64

func (*EmailProviderListResp) ProtoMessage

func (*EmailProviderListResp) ProtoMessage()

func (*EmailProviderListResp) ProtoReflect

func (x *EmailProviderListResp) ProtoReflect() protoreflect.Message

func (*EmailProviderListResp) Reset

func (x *EmailProviderListResp) Reset()

func (*EmailProviderListResp) String

func (x *EmailProviderListResp) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

base message

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type IDReq

type IDReq struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
	// contains filtered or unexported fields
}

func (*IDReq) Descriptor deprecated

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

Deprecated: Use IDReq.ProtoReflect.Descriptor instead.

func (*IDReq) GetId

func (x *IDReq) GetId() uint64

func (*IDReq) ProtoMessage

func (*IDReq) ProtoMessage()

func (*IDReq) ProtoReflect

func (x *IDReq) ProtoReflect() protoreflect.Message

func (*IDReq) Reset

func (x *IDReq) Reset()

func (*IDReq) String

func (x *IDReq) String() string

type IDsReq

type IDsReq struct {
	Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids"`
	// contains filtered or unexported fields
}

func (*IDsReq) Descriptor deprecated

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

Deprecated: Use IDsReq.ProtoReflect.Descriptor instead.

func (*IDsReq) GetIds

func (x *IDsReq) GetIds() []uint64

func (*IDsReq) ProtoMessage

func (*IDsReq) ProtoMessage()

func (*IDsReq) ProtoReflect

func (x *IDsReq) ProtoReflect() protoreflect.Message

func (*IDsReq) Reset

func (x *IDsReq) Reset()

func (*IDsReq) String

func (x *IDsReq) String() string

type McmsClient

type McmsClient interface {
	// group: base
	InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error)
	// group: email
	SendEmail(ctx context.Context, in *EmailInfo, opts ...grpc.CallOption) (*BaseUUIDResp, error)
	// EmailLog management
	// group: emaillog
	CreateEmailLog(ctx context.Context, in *EmailLogInfo, opts ...grpc.CallOption) (*BaseUUIDResp, error)
	// group: emaillog
	UpdateEmailLog(ctx context.Context, in *EmailLogInfo, opts ...grpc.CallOption) (*BaseResp, error)
	// group: emaillog
	GetEmailLogList(ctx context.Context, in *EmailLogListReq, opts ...grpc.CallOption) (*EmailLogListResp, error)
	// group: emaillog
	GetEmailLogById(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*EmailLogInfo, error)
	// group: emaillog
	DeleteEmailLog(ctx context.Context, in *UUIDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	// EmailProvider management
	// group: emailprovider
	CreateEmailProvider(ctx context.Context, in *EmailProviderInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	// group: emailprovider
	UpdateEmailProvider(ctx context.Context, in *EmailProviderInfo, opts ...grpc.CallOption) (*BaseResp, error)
	// group: emailprovider
	GetEmailProviderList(ctx context.Context, in *EmailProviderListReq, opts ...grpc.CallOption) (*EmailProviderListResp, error)
	// group: emailprovider
	GetEmailProviderById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*EmailProviderInfo, error)
	// group: emailprovider
	DeleteEmailProvider(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	// group: sms
	SendSms(ctx context.Context, in *SmsInfo, opts ...grpc.CallOption) (*BaseUUIDResp, error)
	// SmsLog management
	// group: smslog
	CreateSmsLog(ctx context.Context, in *SmsLogInfo, opts ...grpc.CallOption) (*BaseUUIDResp, error)
	// group: smslog
	UpdateSmsLog(ctx context.Context, in *SmsLogInfo, opts ...grpc.CallOption) (*BaseResp, error)
	// group: smslog
	GetSmsLogList(ctx context.Context, in *SmsLogListReq, opts ...grpc.CallOption) (*SmsLogListResp, error)
	// group: smslog
	GetSmsLogById(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*SmsLogInfo, error)
	// group: smslog
	DeleteSmsLog(ctx context.Context, in *UUIDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	// SmsProvider management
	// group: smsprovider
	CreateSmsProvider(ctx context.Context, in *SmsProviderInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	// group: smsprovider
	UpdateSmsProvider(ctx context.Context, in *SmsProviderInfo, opts ...grpc.CallOption) (*BaseResp, error)
	// group: smsprovider
	GetSmsProviderList(ctx context.Context, in *SmsProviderListReq, opts ...grpc.CallOption) (*SmsProviderListResp, error)
	// group: smsprovider
	GetSmsProviderById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*SmsProviderInfo, error)
	// group: smsprovider
	DeleteSmsProvider(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
}

McmsClient is the client API for Mcms 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 NewMcmsClient

func NewMcmsClient(cc grpc.ClientConnInterface) McmsClient

type McmsServer

type McmsServer interface {
	// group: base
	InitDatabase(context.Context, *Empty) (*BaseResp, error)
	// group: email
	SendEmail(context.Context, *EmailInfo) (*BaseUUIDResp, error)
	// EmailLog management
	// group: emaillog
	CreateEmailLog(context.Context, *EmailLogInfo) (*BaseUUIDResp, error)
	// group: emaillog
	UpdateEmailLog(context.Context, *EmailLogInfo) (*BaseResp, error)
	// group: emaillog
	GetEmailLogList(context.Context, *EmailLogListReq) (*EmailLogListResp, error)
	// group: emaillog
	GetEmailLogById(context.Context, *UUIDReq) (*EmailLogInfo, error)
	// group: emaillog
	DeleteEmailLog(context.Context, *UUIDsReq) (*BaseResp, error)
	// EmailProvider management
	// group: emailprovider
	CreateEmailProvider(context.Context, *EmailProviderInfo) (*BaseIDResp, error)
	// group: emailprovider
	UpdateEmailProvider(context.Context, *EmailProviderInfo) (*BaseResp, error)
	// group: emailprovider
	GetEmailProviderList(context.Context, *EmailProviderListReq) (*EmailProviderListResp, error)
	// group: emailprovider
	GetEmailProviderById(context.Context, *IDReq) (*EmailProviderInfo, error)
	// group: emailprovider
	DeleteEmailProvider(context.Context, *IDsReq) (*BaseResp, error)
	// group: sms
	SendSms(context.Context, *SmsInfo) (*BaseUUIDResp, error)
	// SmsLog management
	// group: smslog
	CreateSmsLog(context.Context, *SmsLogInfo) (*BaseUUIDResp, error)
	// group: smslog
	UpdateSmsLog(context.Context, *SmsLogInfo) (*BaseResp, error)
	// group: smslog
	GetSmsLogList(context.Context, *SmsLogListReq) (*SmsLogListResp, error)
	// group: smslog
	GetSmsLogById(context.Context, *UUIDReq) (*SmsLogInfo, error)
	// group: smslog
	DeleteSmsLog(context.Context, *UUIDsReq) (*BaseResp, error)
	// SmsProvider management
	// group: smsprovider
	CreateSmsProvider(context.Context, *SmsProviderInfo) (*BaseIDResp, error)
	// group: smsprovider
	UpdateSmsProvider(context.Context, *SmsProviderInfo) (*BaseResp, error)
	// group: smsprovider
	GetSmsProviderList(context.Context, *SmsProviderListReq) (*SmsProviderListResp, error)
	// group: smsprovider
	GetSmsProviderById(context.Context, *IDReq) (*SmsProviderInfo, error)
	// group: smsprovider
	DeleteSmsProvider(context.Context, *IDsReq) (*BaseResp, error)
	// contains filtered or unexported methods
}

McmsServer is the server API for Mcms service. All implementations must embed UnimplementedMcmsServer for forward compatibility

type PageInfoReq

type PageInfoReq struct {
	Page     uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page"`
	PageSize uint64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
	// contains filtered or unexported fields
}

func (*PageInfoReq) Descriptor deprecated

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

Deprecated: Use PageInfoReq.ProtoReflect.Descriptor instead.

func (*PageInfoReq) GetPage

func (x *PageInfoReq) GetPage() uint64

func (*PageInfoReq) GetPageSize

func (x *PageInfoReq) GetPageSize() uint64

func (*PageInfoReq) ProtoMessage

func (*PageInfoReq) ProtoMessage()

func (*PageInfoReq) ProtoReflect

func (x *PageInfoReq) ProtoReflect() protoreflect.Message

func (*PageInfoReq) Reset

func (x *PageInfoReq) Reset()

func (*PageInfoReq) String

func (x *PageInfoReq) String() string

type SmsInfo

type SmsInfo struct {
	PhoneNumber []string `protobuf:"bytes,1,rep,name=phone_number,json=phoneNumber,proto3" json:"phone_number"`
	Params      []string `protobuf:"bytes,2,rep,name=params,proto3" json:"params"`
	TemplateId  *string  `protobuf:"bytes,4,opt,name=template_id,json=templateId,proto3,oneof" json:"template_id"`
	AppId       *string  `protobuf:"bytes,5,opt,name=app_id,json=appId,proto3,oneof" json:"app_id"`
	SignName    *string  `protobuf:"bytes,6,opt,name=sign_name,json=signName,proto3,oneof" json:"sign_name"`
	Provider    *string  `protobuf:"bytes,7,opt,name=provider,proto3,oneof" json:"provider"`
	// contains filtered or unexported fields
}

func (*SmsInfo) Descriptor deprecated

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

Deprecated: Use SmsInfo.ProtoReflect.Descriptor instead.

func (*SmsInfo) GetAppId

func (x *SmsInfo) GetAppId() string

func (*SmsInfo) GetParams

func (x *SmsInfo) GetParams() []string

func (*SmsInfo) GetPhoneNumber

func (x *SmsInfo) GetPhoneNumber() []string

func (*SmsInfo) GetProvider

func (x *SmsInfo) GetProvider() string

func (*SmsInfo) GetSignName

func (x *SmsInfo) GetSignName() string

func (*SmsInfo) GetTemplateId

func (x *SmsInfo) GetTemplateId() string

func (*SmsInfo) ProtoMessage

func (*SmsInfo) ProtoMessage()

func (*SmsInfo) ProtoReflect

func (x *SmsInfo) ProtoReflect() protoreflect.Message

func (*SmsInfo) Reset

func (x *SmsInfo) Reset()

func (*SmsInfo) String

func (x *SmsInfo) String() string

type SmsLogInfo

type SmsLogInfo struct {
	Id          *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id"`
	CreatedAt   *int64  `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at"`
	UpdatedAt   *int64  `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at"`
	PhoneNumber *string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number"`
	Content     *string `protobuf:"bytes,5,opt,name=content,proto3,oneof" json:"content"`
	SendStatus  *uint32 `protobuf:"varint,6,opt,name=send_status,json=sendStatus,proto3,oneof" json:"send_status"`
	Provider    *string `protobuf:"bytes,7,opt,name=provider,proto3,oneof" json:"provider"`
	// contains filtered or unexported fields
}

func (*SmsLogInfo) Descriptor deprecated

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

Deprecated: Use SmsLogInfo.ProtoReflect.Descriptor instead.

func (*SmsLogInfo) GetContent

func (x *SmsLogInfo) GetContent() string

func (*SmsLogInfo) GetCreatedAt

func (x *SmsLogInfo) GetCreatedAt() int64

func (*SmsLogInfo) GetId

func (x *SmsLogInfo) GetId() string

func (*SmsLogInfo) GetPhoneNumber

func (x *SmsLogInfo) GetPhoneNumber() string

func (*SmsLogInfo) GetProvider

func (x *SmsLogInfo) GetProvider() string

func (*SmsLogInfo) GetSendStatus

func (x *SmsLogInfo) GetSendStatus() uint32

func (*SmsLogInfo) GetUpdatedAt

func (x *SmsLogInfo) GetUpdatedAt() int64

func (*SmsLogInfo) ProtoMessage

func (*SmsLogInfo) ProtoMessage()

func (*SmsLogInfo) ProtoReflect

func (x *SmsLogInfo) ProtoReflect() protoreflect.Message

func (*SmsLogInfo) Reset

func (x *SmsLogInfo) Reset()

func (*SmsLogInfo) String

func (x *SmsLogInfo) String() string

type SmsLogListReq

type SmsLogListReq struct {
	Page        uint64  `protobuf:"varint,1,opt,name=page,proto3" json:"page"`
	PageSize    uint64  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
	PhoneNumber *string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number"`
	Content     *string `protobuf:"bytes,4,opt,name=content,proto3,oneof" json:"content"`
	Provider    *string `protobuf:"bytes,5,opt,name=provider,proto3,oneof" json:"provider"`
	SendStatus  *uint32 `protobuf:"varint,6,opt,name=send_status,json=sendStatus,proto3,oneof" json:"send_status"`
	// contains filtered or unexported fields
}

func (*SmsLogListReq) Descriptor deprecated

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

Deprecated: Use SmsLogListReq.ProtoReflect.Descriptor instead.

func (*SmsLogListReq) GetContent

func (x *SmsLogListReq) GetContent() string

func (*SmsLogListReq) GetPage

func (x *SmsLogListReq) GetPage() uint64

func (*SmsLogListReq) GetPageSize

func (x *SmsLogListReq) GetPageSize() uint64

func (*SmsLogListReq) GetPhoneNumber

func (x *SmsLogListReq) GetPhoneNumber() string

func (*SmsLogListReq) GetProvider

func (x *SmsLogListReq) GetProvider() string

func (*SmsLogListReq) GetSendStatus

func (x *SmsLogListReq) GetSendStatus() uint32

func (*SmsLogListReq) ProtoMessage

func (*SmsLogListReq) ProtoMessage()

func (*SmsLogListReq) ProtoReflect

func (x *SmsLogListReq) ProtoReflect() protoreflect.Message

func (*SmsLogListReq) Reset

func (x *SmsLogListReq) Reset()

func (*SmsLogListReq) String

func (x *SmsLogListReq) String() string

type SmsLogListResp

type SmsLogListResp struct {
	Total uint64        `protobuf:"varint,1,opt,name=total,proto3" json:"total"`
	Data  []*SmsLogInfo `protobuf:"bytes,2,rep,name=data,proto3" json:"data"`
	// contains filtered or unexported fields
}

func (*SmsLogListResp) Descriptor deprecated

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

Deprecated: Use SmsLogListResp.ProtoReflect.Descriptor instead.

func (*SmsLogListResp) GetData

func (x *SmsLogListResp) GetData() []*SmsLogInfo

func (*SmsLogListResp) GetTotal

func (x *SmsLogListResp) GetTotal() uint64

func (*SmsLogListResp) ProtoMessage

func (*SmsLogListResp) ProtoMessage()

func (*SmsLogListResp) ProtoReflect

func (x *SmsLogListResp) ProtoReflect() protoreflect.Message

func (*SmsLogListResp) Reset

func (x *SmsLogListResp) Reset()

func (*SmsLogListResp) String

func (x *SmsLogListResp) String() string

type SmsProviderInfo

type SmsProviderInfo struct {
	Id        *uint64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id"`
	CreatedAt *int64  `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at"`
	UpdatedAt *int64  `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at"`
	Name      *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name"`
	SecretId  *string `protobuf:"bytes,5,opt,name=secret_id,json=secretId,proto3,oneof" json:"secret_id"`
	SecretKey *string `protobuf:"bytes,6,opt,name=secret_key,json=secretKey,proto3,oneof" json:"secret_key"`
	Region    *string `protobuf:"bytes,7,opt,name=region,proto3,oneof" json:"region"`
	IsDefault *bool   `protobuf:"varint,8,opt,name=is_default,json=isDefault,proto3,oneof" json:"is_default"`
	// contains filtered or unexported fields
}

func (*SmsProviderInfo) Descriptor deprecated

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

Deprecated: Use SmsProviderInfo.ProtoReflect.Descriptor instead.

func (*SmsProviderInfo) GetCreatedAt

func (x *SmsProviderInfo) GetCreatedAt() int64

func (*SmsProviderInfo) GetId

func (x *SmsProviderInfo) GetId() uint64

func (*SmsProviderInfo) GetIsDefault

func (x *SmsProviderInfo) GetIsDefault() bool

func (*SmsProviderInfo) GetName

func (x *SmsProviderInfo) GetName() string

func (*SmsProviderInfo) GetRegion

func (x *SmsProviderInfo) GetRegion() string

func (*SmsProviderInfo) GetSecretId

func (x *SmsProviderInfo) GetSecretId() string

func (*SmsProviderInfo) GetSecretKey

func (x *SmsProviderInfo) GetSecretKey() string

func (*SmsProviderInfo) GetUpdatedAt

func (x *SmsProviderInfo) GetUpdatedAt() int64

func (*SmsProviderInfo) ProtoMessage

func (*SmsProviderInfo) ProtoMessage()

func (*SmsProviderInfo) ProtoReflect

func (x *SmsProviderInfo) ProtoReflect() protoreflect.Message

func (*SmsProviderInfo) Reset

func (x *SmsProviderInfo) Reset()

func (*SmsProviderInfo) String

func (x *SmsProviderInfo) String() string

type SmsProviderListReq

type SmsProviderListReq struct {
	Page     uint64  `protobuf:"varint,1,opt,name=page,proto3" json:"page"`
	PageSize uint64  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
	Name     *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name"`
	// contains filtered or unexported fields
}

func (*SmsProviderListReq) Descriptor deprecated

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

Deprecated: Use SmsProviderListReq.ProtoReflect.Descriptor instead.

func (*SmsProviderListReq) GetName

func (x *SmsProviderListReq) GetName() string

func (*SmsProviderListReq) GetPage

func (x *SmsProviderListReq) GetPage() uint64

func (*SmsProviderListReq) GetPageSize

func (x *SmsProviderListReq) GetPageSize() uint64

func (*SmsProviderListReq) ProtoMessage

func (*SmsProviderListReq) ProtoMessage()

func (*SmsProviderListReq) ProtoReflect

func (x *SmsProviderListReq) ProtoReflect() protoreflect.Message

func (*SmsProviderListReq) Reset

func (x *SmsProviderListReq) Reset()

func (*SmsProviderListReq) String

func (x *SmsProviderListReq) String() string

type SmsProviderListResp

type SmsProviderListResp struct {
	Total uint64             `protobuf:"varint,1,opt,name=total,proto3" json:"total"`
	Data  []*SmsProviderInfo `protobuf:"bytes,2,rep,name=data,proto3" json:"data"`
	// contains filtered or unexported fields
}

func (*SmsProviderListResp) Descriptor deprecated

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

Deprecated: Use SmsProviderListResp.ProtoReflect.Descriptor instead.

func (*SmsProviderListResp) GetData

func (x *SmsProviderListResp) GetData() []*SmsProviderInfo

func (*SmsProviderListResp) GetTotal

func (x *SmsProviderListResp) GetTotal() uint64

func (*SmsProviderListResp) ProtoMessage

func (*SmsProviderListResp) ProtoMessage()

func (*SmsProviderListResp) ProtoReflect

func (x *SmsProviderListResp) ProtoReflect() protoreflect.Message

func (*SmsProviderListResp) Reset

func (x *SmsProviderListResp) Reset()

func (*SmsProviderListResp) String

func (x *SmsProviderListResp) String() string

type UUIDReq

type UUIDReq struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
	// contains filtered or unexported fields
}

func (*UUIDReq) Descriptor deprecated

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

Deprecated: Use UUIDReq.ProtoReflect.Descriptor instead.

func (*UUIDReq) GetId

func (x *UUIDReq) GetId() string

func (*UUIDReq) ProtoMessage

func (*UUIDReq) ProtoMessage()

func (*UUIDReq) ProtoReflect

func (x *UUIDReq) ProtoReflect() protoreflect.Message

func (*UUIDReq) Reset

func (x *UUIDReq) Reset()

func (*UUIDReq) String

func (x *UUIDReq) String() string

type UUIDsReq

type UUIDsReq struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids"`
	// contains filtered or unexported fields
}

func (*UUIDsReq) Descriptor deprecated

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

Deprecated: Use UUIDsReq.ProtoReflect.Descriptor instead.

func (*UUIDsReq) GetIds

func (x *UUIDsReq) GetIds() []string

func (*UUIDsReq) ProtoMessage

func (*UUIDsReq) ProtoMessage()

func (*UUIDsReq) ProtoReflect

func (x *UUIDsReq) ProtoReflect() protoreflect.Message

func (*UUIDsReq) Reset

func (x *UUIDsReq) Reset()

func (*UUIDsReq) String

func (x *UUIDsReq) String() string

type UnimplementedMcmsServer

type UnimplementedMcmsServer struct {
}

UnimplementedMcmsServer must be embedded to have forward compatible implementations.

func (UnimplementedMcmsServer) CreateEmailLog

func (UnimplementedMcmsServer) CreateEmailProvider

func (UnimplementedMcmsServer) CreateSmsLog

func (UnimplementedMcmsServer) CreateSmsProvider

func (UnimplementedMcmsServer) DeleteEmailLog

func (UnimplementedMcmsServer) DeleteEmailProvider

func (UnimplementedMcmsServer) DeleteEmailProvider(context.Context, *IDsReq) (*BaseResp, error)

func (UnimplementedMcmsServer) DeleteSmsLog

func (UnimplementedMcmsServer) DeleteSmsProvider

func (UnimplementedMcmsServer) DeleteSmsProvider(context.Context, *IDsReq) (*BaseResp, error)

func (UnimplementedMcmsServer) GetEmailLogById

func (UnimplementedMcmsServer) GetEmailLogList

func (UnimplementedMcmsServer) GetEmailProviderById

func (UnimplementedMcmsServer) GetEmailProviderList

func (UnimplementedMcmsServer) GetSmsLogById

func (UnimplementedMcmsServer) GetSmsLogList

func (UnimplementedMcmsServer) GetSmsProviderById

func (UnimplementedMcmsServer) GetSmsProviderList

func (UnimplementedMcmsServer) InitDatabase

func (UnimplementedMcmsServer) SendEmail

func (UnimplementedMcmsServer) SendSms

func (UnimplementedMcmsServer) UpdateEmailLog

func (UnimplementedMcmsServer) UpdateEmailProvider

func (UnimplementedMcmsServer) UpdateSmsLog

func (UnimplementedMcmsServer) UpdateSmsProvider

type UnsafeMcmsServer

type UnsafeMcmsServer interface {
	// contains filtered or unexported methods
}

UnsafeMcmsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to McmsServer will result in compilation errors.

Jump to

Keyboard shortcuts

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