notify

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChatGroup_CreateChatGroup_FullMethodName = "/api.server.prom.notify.ChatGroup/CreateChatGroup"
	ChatGroup_UpdateChatGroup_FullMethodName = "/api.server.prom.notify.ChatGroup/UpdateChatGroup"
	ChatGroup_DeleteChatGroup_FullMethodName = "/api.server.prom.notify.ChatGroup/DeleteChatGroup"
	ChatGroup_GetChatGroup_FullMethodName    = "/api.server.prom.notify.ChatGroup/GetChatGroup"
	ChatGroup_ListChatGroup_FullMethodName   = "/api.server.prom.notify.ChatGroup/ListChatGroup"
	ChatGroup_SelectChatGroup_FullMethodName = "/api.server.prom.notify.ChatGroup/SelectChatGroup"
)
View Source
const (
	Notify_CreateNotify_FullMethodName = "/api.server.prom.notify.Notify/CreateNotify"
	Notify_UpdateNotify_FullMethodName = "/api.server.prom.notify.Notify/UpdateNotify"
	Notify_DeleteNotify_FullMethodName = "/api.server.prom.notify.Notify/DeleteNotify"
	Notify_GetNotify_FullMethodName    = "/api.server.prom.notify.Notify/GetNotify"
	Notify_ListNotify_FullMethodName   = "/api.server.prom.notify.Notify/ListNotify"
	Notify_SelectNotify_FullMethodName = "/api.server.prom.notify.Notify/SelectNotify"
)
View Source
const (
	Template_CreateTemplate_FullMethodName = "/api.server.prom.notify.Template/CreateTemplate"
	Template_UpdateTemplate_FullMethodName = "/api.server.prom.notify.Template/UpdateTemplate"
	Template_DeleteTemplate_FullMethodName = "/api.server.prom.notify.Template/DeleteTemplate"
	Template_GetTemplate_FullMethodName    = "/api.server.prom.notify.Template/GetTemplate"
	Template_ListTemplate_FullMethodName   = "/api.server.prom.notify.Template/ListTemplate"
)
View Source
const OperationChatGroupCreateChatGroup = "/api.server.prom.notify.ChatGroup/CreateChatGroup"
View Source
const OperationChatGroupDeleteChatGroup = "/api.server.prom.notify.ChatGroup/DeleteChatGroup"
View Source
const OperationChatGroupGetChatGroup = "/api.server.prom.notify.ChatGroup/GetChatGroup"
View Source
const OperationChatGroupListChatGroup = "/api.server.prom.notify.ChatGroup/ListChatGroup"
View Source
const OperationChatGroupSelectChatGroup = "/api.server.prom.notify.ChatGroup/SelectChatGroup"
View Source
const OperationChatGroupUpdateChatGroup = "/api.server.prom.notify.ChatGroup/UpdateChatGroup"
View Source
const OperationNotifyCreateNotify = "/api.server.prom.notify.Notify/CreateNotify"
View Source
const OperationNotifyDeleteNotify = "/api.server.prom.notify.Notify/DeleteNotify"
View Source
const OperationNotifyGetNotify = "/api.server.prom.notify.Notify/GetNotify"
View Source
const OperationNotifyListNotify = "/api.server.prom.notify.Notify/ListNotify"
View Source
const OperationNotifySelectNotify = "/api.server.prom.notify.Notify/SelectNotify"
View Source
const OperationNotifyUpdateNotify = "/api.server.prom.notify.Notify/UpdateNotify"
View Source
const OperationTemplateCreateTemplate = "/api.server.prom.notify.Template/CreateTemplate"
View Source
const OperationTemplateDeleteTemplate = "/api.server.prom.notify.Template/DeleteTemplate"
View Source
const OperationTemplateGetTemplate = "/api.server.prom.notify.Template/GetTemplate"
View Source
const OperationTemplateListTemplate = "/api.server.prom.notify.Template/ListTemplate"
View Source
const OperationTemplateUpdateTemplate = "/api.server.prom.notify.Template/UpdateTemplate"

Variables

View Source
var ChatGroup_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.server.prom.notify.ChatGroup",
	HandlerType: (*ChatGroupServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateChatGroup",
			Handler:    _ChatGroup_CreateChatGroup_Handler,
		},
		{
			MethodName: "UpdateChatGroup",
			Handler:    _ChatGroup_UpdateChatGroup_Handler,
		},
		{
			MethodName: "DeleteChatGroup",
			Handler:    _ChatGroup_DeleteChatGroup_Handler,
		},
		{
			MethodName: "GetChatGroup",
			Handler:    _ChatGroup_GetChatGroup_Handler,
		},
		{
			MethodName: "ListChatGroup",
			Handler:    _ChatGroup_ListChatGroup_Handler,
		},
		{
			MethodName: "SelectChatGroup",
			Handler:    _ChatGroup_SelectChatGroup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "server/prom/notify/chat_group.proto",
}

ChatGroup_ServiceDesc is the grpc.ServiceDesc for ChatGroup 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_server_prom_notify_chat_group_proto protoreflect.FileDescriptor
View Source
var File_server_prom_notify_notify_proto protoreflect.FileDescriptor
View Source
var File_server_prom_notify_template_proto protoreflect.FileDescriptor
View Source
var Notify_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.server.prom.notify.Notify",
	HandlerType: (*NotifyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateNotify",
			Handler:    _Notify_CreateNotify_Handler,
		},
		{
			MethodName: "UpdateNotify",
			Handler:    _Notify_UpdateNotify_Handler,
		},
		{
			MethodName: "DeleteNotify",
			Handler:    _Notify_DeleteNotify_Handler,
		},
		{
			MethodName: "GetNotify",
			Handler:    _Notify_GetNotify_Handler,
		},
		{
			MethodName: "ListNotify",
			Handler:    _Notify_ListNotify_Handler,
		},
		{
			MethodName: "SelectNotify",
			Handler:    _Notify_SelectNotify_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "server/prom/notify/notify.proto",
}

Notify_ServiceDesc is the grpc.ServiceDesc for Notify 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 Template_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.server.prom.notify.Template",
	HandlerType: (*TemplateServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateTemplate",
			Handler:    _Template_CreateTemplate_Handler,
		},
		{
			MethodName: "UpdateTemplate",
			Handler:    _Template_UpdateTemplate_Handler,
		},
		{
			MethodName: "DeleteTemplate",
			Handler:    _Template_DeleteTemplate_Handler,
		},
		{
			MethodName: "GetTemplate",
			Handler:    _Template_GetTemplate_Handler,
		},
		{
			MethodName: "ListTemplate",
			Handler:    _Template_ListTemplate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "server/prom/notify/template.proto",
}

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

Functions

func RegisterChatGroupHTTPServer

func RegisterChatGroupHTTPServer(s *http.Server, srv ChatGroupHTTPServer)

func RegisterChatGroupServer

func RegisterChatGroupServer(s grpc.ServiceRegistrar, srv ChatGroupServer)

func RegisterNotifyHTTPServer

func RegisterNotifyHTTPServer(s *http.Server, srv NotifyHTTPServer)

func RegisterNotifyServer

func RegisterNotifyServer(s grpc.ServiceRegistrar, srv NotifyServer)

func RegisterTemplateHTTPServer

func RegisterTemplateHTTPServer(s *http.Server, srv TemplateHTTPServer)

func RegisterTemplateServer

func RegisterTemplateServer(s grpc.ServiceRegistrar, srv TemplateServer)

Types

type ChatGroupClient

type ChatGroupClient interface {
	// 创建通知群组
	CreateChatGroup(ctx context.Context, in *CreateChatGroupRequest, opts ...grpc.CallOption) (*CreateChatGroupReply, error)
	// 更新通知群组
	UpdateChatGroup(ctx context.Context, in *UpdateChatGroupRequest, opts ...grpc.CallOption) (*UpdateChatGroupReply, error)
	// 删除通知群组
	DeleteChatGroup(ctx context.Context, in *DeleteChatGroupRequest, opts ...grpc.CallOption) (*DeleteChatGroupReply, error)
	// 获取通知群组
	GetChatGroup(ctx context.Context, in *GetChatGroupRequest, opts ...grpc.CallOption) (*GetChatGroupReply, error)
	// 获取通知群组列表
	ListChatGroup(ctx context.Context, in *ListChatGroupRequest, opts ...grpc.CallOption) (*ListChatGroupReply, error)
	// 获取通知群组列表(下拉选择)
	SelectChatGroup(ctx context.Context, in *SelectChatGroupRequest, opts ...grpc.CallOption) (*SelectChatGroupReply, error)
}

ChatGroupClient is the client API for ChatGroup 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 NewChatGroupClient

func NewChatGroupClient(cc grpc.ClientConnInterface) ChatGroupClient

type ChatGroupHTTPClient

type ChatGroupHTTPClient interface {
	CreateChatGroup(ctx context.Context, req *CreateChatGroupRequest, opts ...http.CallOption) (rsp *CreateChatGroupReply, err error)
	DeleteChatGroup(ctx context.Context, req *DeleteChatGroupRequest, opts ...http.CallOption) (rsp *DeleteChatGroupReply, err error)
	GetChatGroup(ctx context.Context, req *GetChatGroupRequest, opts ...http.CallOption) (rsp *GetChatGroupReply, err error)
	ListChatGroup(ctx context.Context, req *ListChatGroupRequest, opts ...http.CallOption) (rsp *ListChatGroupReply, err error)
	SelectChatGroup(ctx context.Context, req *SelectChatGroupRequest, opts ...http.CallOption) (rsp *SelectChatGroupReply, err error)
	UpdateChatGroup(ctx context.Context, req *UpdateChatGroupRequest, opts ...http.CallOption) (rsp *UpdateChatGroupReply, err error)
}

func NewChatGroupHTTPClient

func NewChatGroupHTTPClient(client *http.Client) ChatGroupHTTPClient

type ChatGroupHTTPClientImpl

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

func (*ChatGroupHTTPClientImpl) CreateChatGroup

func (*ChatGroupHTTPClientImpl) DeleteChatGroup

func (*ChatGroupHTTPClientImpl) GetChatGroup

func (*ChatGroupHTTPClientImpl) ListChatGroup

func (*ChatGroupHTTPClientImpl) SelectChatGroup

func (*ChatGroupHTTPClientImpl) UpdateChatGroup

type ChatGroupHTTPServer

type ChatGroupHTTPServer interface {
	// CreateChatGroup 创建通知群组
	CreateChatGroup(context.Context, *CreateChatGroupRequest) (*CreateChatGroupReply, error)
	// DeleteChatGroup 删除通知群组
	DeleteChatGroup(context.Context, *DeleteChatGroupRequest) (*DeleteChatGroupReply, error)
	// GetChatGroup 获取通知群组
	GetChatGroup(context.Context, *GetChatGroupRequest) (*GetChatGroupReply, error)
	// ListChatGroup 获取通知群组列表
	ListChatGroup(context.Context, *ListChatGroupRequest) (*ListChatGroupReply, error)
	// SelectChatGroup 获取通知群组列表(下拉选择)
	SelectChatGroup(context.Context, *SelectChatGroupRequest) (*SelectChatGroupReply, error)
	// UpdateChatGroup 更新通知群组
	UpdateChatGroup(context.Context, *UpdateChatGroupRequest) (*UpdateChatGroupReply, error)
}

type ChatGroupServer

type ChatGroupServer interface {
	// 创建通知群组
	CreateChatGroup(context.Context, *CreateChatGroupRequest) (*CreateChatGroupReply, error)
	// 更新通知群组
	UpdateChatGroup(context.Context, *UpdateChatGroupRequest) (*UpdateChatGroupReply, error)
	// 删除通知群组
	DeleteChatGroup(context.Context, *DeleteChatGroupRequest) (*DeleteChatGroupReply, error)
	// 获取通知群组
	GetChatGroup(context.Context, *GetChatGroupRequest) (*GetChatGroupReply, error)
	// 获取通知群组列表
	ListChatGroup(context.Context, *ListChatGroupRequest) (*ListChatGroupReply, error)
	// 获取通知群组列表(下拉选择)
	SelectChatGroup(context.Context, *SelectChatGroupRequest) (*SelectChatGroupReply, error)
	// contains filtered or unexported methods
}

ChatGroupServer is the server API for ChatGroup service. All implementations must embed UnimplementedChatGroupServer for forward compatibility

type CreateChatGroupReply

type CreateChatGroupReply struct {

	// 群组ID, 成功会返回该参数
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

创建通知群组响应参数

func (*CreateChatGroupReply) Descriptor deprecated

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

Deprecated: Use CreateChatGroupReply.ProtoReflect.Descriptor instead.

func (*CreateChatGroupReply) GetId

func (x *CreateChatGroupReply) GetId() uint32

func (*CreateChatGroupReply) ProtoMessage

func (*CreateChatGroupReply) ProtoMessage()

func (*CreateChatGroupReply) ProtoReflect

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

func (*CreateChatGroupReply) Reset

func (x *CreateChatGroupReply) Reset()

func (*CreateChatGroupReply) String

func (x *CreateChatGroupReply) String() string

func (*CreateChatGroupReply) Validate

func (m *CreateChatGroupReply) Validate() error

Validate checks the field values on CreateChatGroupReply 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 (*CreateChatGroupReply) ValidateAll

func (m *CreateChatGroupReply) ValidateAll() error

ValidateAll checks the field values on CreateChatGroupReply 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 CreateChatGroupReplyMultiError, or nil if none found.

type CreateChatGroupReplyMultiError

type CreateChatGroupReplyMultiError []error

CreateChatGroupReplyMultiError is an error wrapping multiple validation errors returned by CreateChatGroupReply.ValidateAll() if the designated constraints aren't met.

func (CreateChatGroupReplyMultiError) AllErrors

func (m CreateChatGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateChatGroupReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateChatGroupReplyValidationError

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

CreateChatGroupReplyValidationError is the validation error returned by CreateChatGroupReply.Validate if the designated constraints aren't met.

func (CreateChatGroupReplyValidationError) Cause

Cause function returns cause value.

func (CreateChatGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateChatGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateChatGroupReplyValidationError) Field

Field function returns field value.

func (CreateChatGroupReplyValidationError) Key

Key function returns key value.

func (CreateChatGroupReplyValidationError) Reason

Reason function returns reason value.

type CreateChatGroupRequest

type CreateChatGroupRequest struct {

	// 群组名称(一般指IM群, 例如微信群、钉钉群等)
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 群组备注
	Remark string `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"`
	// 群组webhook地址(机器人地址)
	Hook string `protobuf:"bytes,3,opt,name=hook,proto3" json:"hook,omitempty"`
	// 这个群组所属的应用
	App api.NotifyApp `protobuf:"varint,4,opt,name=app,proto3,enum=api.NotifyApp" json:"app,omitempty"`
	// hook一般是机器人, 这个字段是机器人的名称(也可以是hook别名)
	HookName string `protobuf:"bytes,5,opt,name=hookName,proto3" json:"hookName,omitempty"`
	// secret , hook通知密钥
	Secret string `protobuf:"bytes,8,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

创建通知群组请求参数

func (*CreateChatGroupRequest) Descriptor deprecated

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

Deprecated: Use CreateChatGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateChatGroupRequest) GetApp

func (x *CreateChatGroupRequest) GetApp() api.NotifyApp

func (*CreateChatGroupRequest) GetHook

func (x *CreateChatGroupRequest) GetHook() string

func (*CreateChatGroupRequest) GetHookName

func (x *CreateChatGroupRequest) GetHookName() string

func (*CreateChatGroupRequest) GetName

func (x *CreateChatGroupRequest) GetName() string

func (*CreateChatGroupRequest) GetRemark

func (x *CreateChatGroupRequest) GetRemark() string

func (*CreateChatGroupRequest) GetSecret

func (x *CreateChatGroupRequest) GetSecret() string

func (*CreateChatGroupRequest) ProtoMessage

func (*CreateChatGroupRequest) ProtoMessage()

func (*CreateChatGroupRequest) ProtoReflect

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

func (*CreateChatGroupRequest) Reset

func (x *CreateChatGroupRequest) Reset()

func (*CreateChatGroupRequest) String

func (x *CreateChatGroupRequest) String() string

func (*CreateChatGroupRequest) Validate

func (m *CreateChatGroupRequest) Validate() error

Validate checks the field values on CreateChatGroupRequest 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 (*CreateChatGroupRequest) ValidateAll

func (m *CreateChatGroupRequest) ValidateAll() error

ValidateAll checks the field values on CreateChatGroupRequest 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 CreateChatGroupRequestMultiError, or nil if none found.

type CreateChatGroupRequestMultiError

type CreateChatGroupRequestMultiError []error

CreateChatGroupRequestMultiError is an error wrapping multiple validation errors returned by CreateChatGroupRequest.ValidateAll() if the designated constraints aren't met.

func (CreateChatGroupRequestMultiError) AllErrors

func (m CreateChatGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateChatGroupRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateChatGroupRequestValidationError

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

CreateChatGroupRequestValidationError is the validation error returned by CreateChatGroupRequest.Validate if the designated constraints aren't met.

func (CreateChatGroupRequestValidationError) Cause

Cause function returns cause value.

func (CreateChatGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateChatGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateChatGroupRequestValidationError) Field

Field function returns field value.

func (CreateChatGroupRequestValidationError) Key

Key function returns key value.

func (CreateChatGroupRequestValidationError) Reason

Reason function returns reason value.

type CreateNotifyReply

type CreateNotifyReply struct {

	// 通知对象ID, 创建成功后返回
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

创建通知对象响应参数

func (*CreateNotifyReply) Descriptor deprecated

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

Deprecated: Use CreateNotifyReply.ProtoReflect.Descriptor instead.

func (*CreateNotifyReply) GetId

func (x *CreateNotifyReply) GetId() uint32

func (*CreateNotifyReply) ProtoMessage

func (*CreateNotifyReply) ProtoMessage()

func (*CreateNotifyReply) ProtoReflect

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

func (*CreateNotifyReply) Reset

func (x *CreateNotifyReply) Reset()

func (*CreateNotifyReply) String

func (x *CreateNotifyReply) String() string

func (*CreateNotifyReply) Validate

func (m *CreateNotifyReply) Validate() error

Validate checks the field values on CreateNotifyReply 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 (*CreateNotifyReply) ValidateAll

func (m *CreateNotifyReply) ValidateAll() error

ValidateAll checks the field values on CreateNotifyReply 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 CreateNotifyReplyMultiError, or nil if none found.

type CreateNotifyReplyMultiError

type CreateNotifyReplyMultiError []error

CreateNotifyReplyMultiError is an error wrapping multiple validation errors returned by CreateNotifyReply.ValidateAll() if the designated constraints aren't met.

func (CreateNotifyReplyMultiError) AllErrors

func (m CreateNotifyReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateNotifyReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateNotifyReplyValidationError

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

CreateNotifyReplyValidationError is the validation error returned by CreateNotifyReply.Validate if the designated constraints aren't met.

func (CreateNotifyReplyValidationError) Cause

Cause function returns cause value.

func (CreateNotifyReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateNotifyReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateNotifyReplyValidationError) Field

Field function returns field value.

func (CreateNotifyReplyValidationError) Key

Key function returns key value.

func (CreateNotifyReplyValidationError) Reason

Reason function returns reason value.

type CreateNotifyRequest

type CreateNotifyRequest struct {

	// 通知对象名称, 字符串长度2-20
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 备注
	Remark string `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"`
	// 通知的人员
	Members []*api.BeNotifyMember `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
	// 通知的群组
	ChatGroups []uint32 `protobuf:"varint,4,rep,packed,name=chatGroups,proto3" json:"chatGroups,omitempty"`
	// contains filtered or unexported fields
}

创建通知对象请求参数

func (*CreateNotifyRequest) Descriptor deprecated

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

Deprecated: Use CreateNotifyRequest.ProtoReflect.Descriptor instead.

func (*CreateNotifyRequest) GetChatGroups

func (x *CreateNotifyRequest) GetChatGroups() []uint32

func (*CreateNotifyRequest) GetMembers

func (x *CreateNotifyRequest) GetMembers() []*api.BeNotifyMember

func (*CreateNotifyRequest) GetName

func (x *CreateNotifyRequest) GetName() string

func (*CreateNotifyRequest) GetRemark

func (x *CreateNotifyRequest) GetRemark() string

func (*CreateNotifyRequest) ProtoMessage

func (*CreateNotifyRequest) ProtoMessage()

func (*CreateNotifyRequest) ProtoReflect

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

func (*CreateNotifyRequest) Reset

func (x *CreateNotifyRequest) Reset()

func (*CreateNotifyRequest) String

func (x *CreateNotifyRequest) String() string

func (*CreateNotifyRequest) Validate

func (m *CreateNotifyRequest) Validate() error

Validate checks the field values on CreateNotifyRequest 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 (*CreateNotifyRequest) ValidateAll

func (m *CreateNotifyRequest) ValidateAll() error

ValidateAll checks the field values on CreateNotifyRequest 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 CreateNotifyRequestMultiError, or nil if none found.

type CreateNotifyRequestMultiError

type CreateNotifyRequestMultiError []error

CreateNotifyRequestMultiError is an error wrapping multiple validation errors returned by CreateNotifyRequest.ValidateAll() if the designated constraints aren't met.

func (CreateNotifyRequestMultiError) AllErrors

func (m CreateNotifyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateNotifyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateNotifyRequestValidationError

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

CreateNotifyRequestValidationError is the validation error returned by CreateNotifyRequest.Validate if the designated constraints aren't met.

func (CreateNotifyRequestValidationError) Cause

Cause function returns cause value.

func (CreateNotifyRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateNotifyRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateNotifyRequestValidationError) Field

Field function returns field value.

func (CreateNotifyRequestValidationError) Key

Key function returns key value.

func (CreateNotifyRequestValidationError) Reason

Reason function returns reason value.

type CreateTemplateReply

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

func (*CreateTemplateReply) Descriptor deprecated

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

Deprecated: Use CreateTemplateReply.ProtoReflect.Descriptor instead.

func (*CreateTemplateReply) ProtoMessage

func (*CreateTemplateReply) ProtoMessage()

func (*CreateTemplateReply) ProtoReflect

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

func (*CreateTemplateReply) Reset

func (x *CreateTemplateReply) Reset()

func (*CreateTemplateReply) String

func (x *CreateTemplateReply) String() string

func (*CreateTemplateReply) Validate

func (m *CreateTemplateReply) Validate() error

Validate checks the field values on CreateTemplateReply 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 (*CreateTemplateReply) ValidateAll

func (m *CreateTemplateReply) ValidateAll() error

ValidateAll checks the field values on CreateTemplateReply 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 CreateTemplateReplyMultiError, or nil if none found.

type CreateTemplateReplyMultiError

type CreateTemplateReplyMultiError []error

CreateTemplateReplyMultiError is an error wrapping multiple validation errors returned by CreateTemplateReply.ValidateAll() if the designated constraints aren't met.

func (CreateTemplateReplyMultiError) AllErrors

func (m CreateTemplateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTemplateReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateTemplateReplyValidationError

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

CreateTemplateReplyValidationError is the validation error returned by CreateTemplateReply.Validate if the designated constraints aren't met.

func (CreateTemplateReplyValidationError) Cause

Cause function returns cause value.

func (CreateTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateTemplateReplyValidationError) Field

Field function returns field value.

func (CreateTemplateReplyValidationError) Key

Key function returns key value.

func (CreateTemplateReplyValidationError) Reason

Reason function returns reason value.

type CreateTemplateRequest

type CreateTemplateRequest struct {

	// 模板内容
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// 所属策略
	StrategyId uint32 `protobuf:"varint,3,opt,name=strategyId,proto3" json:"strategyId,omitempty"`
	// 模板类型
	NotifyType api.NotifyTemplateType `protobuf:"varint,4,opt,name=notifyType,proto3,enum=api.NotifyTemplateType" json:"notifyType,omitempty"`
	// contains filtered or unexported fields
}

创建模板请求参数

func (*CreateTemplateRequest) Descriptor deprecated

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

Deprecated: Use CreateTemplateRequest.ProtoReflect.Descriptor instead.

func (*CreateTemplateRequest) GetContent

func (x *CreateTemplateRequest) GetContent() string

func (*CreateTemplateRequest) GetNotifyType

func (x *CreateTemplateRequest) GetNotifyType() api.NotifyTemplateType

func (*CreateTemplateRequest) GetStrategyId

func (x *CreateTemplateRequest) GetStrategyId() uint32

func (*CreateTemplateRequest) ProtoMessage

func (*CreateTemplateRequest) ProtoMessage()

func (*CreateTemplateRequest) ProtoReflect

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

func (*CreateTemplateRequest) Reset

func (x *CreateTemplateRequest) Reset()

func (*CreateTemplateRequest) String

func (x *CreateTemplateRequest) String() string

func (*CreateTemplateRequest) Validate

func (m *CreateTemplateRequest) Validate() error

Validate checks the field values on CreateTemplateRequest 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 (*CreateTemplateRequest) ValidateAll

func (m *CreateTemplateRequest) ValidateAll() error

ValidateAll checks the field values on CreateTemplateRequest 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 CreateTemplateRequestMultiError, or nil if none found.

type CreateTemplateRequestMultiError

type CreateTemplateRequestMultiError []error

CreateTemplateRequestMultiError is an error wrapping multiple validation errors returned by CreateTemplateRequest.ValidateAll() if the designated constraints aren't met.

func (CreateTemplateRequestMultiError) AllErrors

func (m CreateTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTemplateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateTemplateRequestValidationError

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

CreateTemplateRequestValidationError is the validation error returned by CreateTemplateRequest.Validate if the designated constraints aren't met.

func (CreateTemplateRequestValidationError) Cause

Cause function returns cause value.

func (CreateTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTemplateRequestValidationError) Field

Field function returns field value.

func (CreateTemplateRequestValidationError) Key

Key function returns key value.

func (CreateTemplateRequestValidationError) Reason

Reason function returns reason value.

type DeleteChatGroupReply

type DeleteChatGroupReply struct {

	// 群组ID, 成功会返回该参数
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

删除通知群组响应参数

func (*DeleteChatGroupReply) Descriptor deprecated

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

Deprecated: Use DeleteChatGroupReply.ProtoReflect.Descriptor instead.

func (*DeleteChatGroupReply) GetId

func (x *DeleteChatGroupReply) GetId() uint32

func (*DeleteChatGroupReply) ProtoMessage

func (*DeleteChatGroupReply) ProtoMessage()

func (*DeleteChatGroupReply) ProtoReflect

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

func (*DeleteChatGroupReply) Reset

func (x *DeleteChatGroupReply) Reset()

func (*DeleteChatGroupReply) String

func (x *DeleteChatGroupReply) String() string

func (*DeleteChatGroupReply) Validate

func (m *DeleteChatGroupReply) Validate() error

Validate checks the field values on DeleteChatGroupReply 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 (*DeleteChatGroupReply) ValidateAll

func (m *DeleteChatGroupReply) ValidateAll() error

ValidateAll checks the field values on DeleteChatGroupReply 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 DeleteChatGroupReplyMultiError, or nil if none found.

type DeleteChatGroupReplyMultiError

type DeleteChatGroupReplyMultiError []error

DeleteChatGroupReplyMultiError is an error wrapping multiple validation errors returned by DeleteChatGroupReply.ValidateAll() if the designated constraints aren't met.

func (DeleteChatGroupReplyMultiError) AllErrors

func (m DeleteChatGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteChatGroupReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteChatGroupReplyValidationError

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

DeleteChatGroupReplyValidationError is the validation error returned by DeleteChatGroupReply.Validate if the designated constraints aren't met.

func (DeleteChatGroupReplyValidationError) Cause

Cause function returns cause value.

func (DeleteChatGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteChatGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteChatGroupReplyValidationError) Field

Field function returns field value.

func (DeleteChatGroupReplyValidationError) Key

Key function returns key value.

func (DeleteChatGroupReplyValidationError) Reason

Reason function returns reason value.

type DeleteChatGroupRequest

type DeleteChatGroupRequest struct {

	// 需要删除的群组ID(大于0), 路径参数
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

删除通知群组请求参数

func (*DeleteChatGroupRequest) Descriptor deprecated

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

Deprecated: Use DeleteChatGroupRequest.ProtoReflect.Descriptor instead.

func (*DeleteChatGroupRequest) GetId

func (x *DeleteChatGroupRequest) GetId() uint32

func (*DeleteChatGroupRequest) ProtoMessage

func (*DeleteChatGroupRequest) ProtoMessage()

func (*DeleteChatGroupRequest) ProtoReflect

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

func (*DeleteChatGroupRequest) Reset

func (x *DeleteChatGroupRequest) Reset()

func (*DeleteChatGroupRequest) String

func (x *DeleteChatGroupRequest) String() string

func (*DeleteChatGroupRequest) Validate

func (m *DeleteChatGroupRequest) Validate() error

Validate checks the field values on DeleteChatGroupRequest 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 (*DeleteChatGroupRequest) ValidateAll

func (m *DeleteChatGroupRequest) ValidateAll() error

ValidateAll checks the field values on DeleteChatGroupRequest 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 DeleteChatGroupRequestMultiError, or nil if none found.

type DeleteChatGroupRequestMultiError

type DeleteChatGroupRequestMultiError []error

DeleteChatGroupRequestMultiError is an error wrapping multiple validation errors returned by DeleteChatGroupRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteChatGroupRequestMultiError) AllErrors

func (m DeleteChatGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteChatGroupRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteChatGroupRequestValidationError

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

DeleteChatGroupRequestValidationError is the validation error returned by DeleteChatGroupRequest.Validate if the designated constraints aren't met.

func (DeleteChatGroupRequestValidationError) Cause

Cause function returns cause value.

func (DeleteChatGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteChatGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteChatGroupRequestValidationError) Field

Field function returns field value.

func (DeleteChatGroupRequestValidationError) Key

Key function returns key value.

func (DeleteChatGroupRequestValidationError) Reason

Reason function returns reason value.

type DeleteNotifyReply

type DeleteNotifyReply struct {

	// 通知对象ID, 删除成功后返回
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

删除通知对象响应参数

func (*DeleteNotifyReply) Descriptor deprecated

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

Deprecated: Use DeleteNotifyReply.ProtoReflect.Descriptor instead.

func (*DeleteNotifyReply) GetId

func (x *DeleteNotifyReply) GetId() uint32

func (*DeleteNotifyReply) ProtoMessage

func (*DeleteNotifyReply) ProtoMessage()

func (*DeleteNotifyReply) ProtoReflect

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

func (*DeleteNotifyReply) Reset

func (x *DeleteNotifyReply) Reset()

func (*DeleteNotifyReply) String

func (x *DeleteNotifyReply) String() string

func (*DeleteNotifyReply) Validate

func (m *DeleteNotifyReply) Validate() error

Validate checks the field values on DeleteNotifyReply 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 (*DeleteNotifyReply) ValidateAll

func (m *DeleteNotifyReply) ValidateAll() error

ValidateAll checks the field values on DeleteNotifyReply 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 DeleteNotifyReplyMultiError, or nil if none found.

type DeleteNotifyReplyMultiError

type DeleteNotifyReplyMultiError []error

DeleteNotifyReplyMultiError is an error wrapping multiple validation errors returned by DeleteNotifyReply.ValidateAll() if the designated constraints aren't met.

func (DeleteNotifyReplyMultiError) AllErrors

func (m DeleteNotifyReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteNotifyReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteNotifyReplyValidationError

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

DeleteNotifyReplyValidationError is the validation error returned by DeleteNotifyReply.Validate if the designated constraints aren't met.

func (DeleteNotifyReplyValidationError) Cause

Cause function returns cause value.

func (DeleteNotifyReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteNotifyReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteNotifyReplyValidationError) Field

Field function returns field value.

func (DeleteNotifyReplyValidationError) Key

Key function returns key value.

func (DeleteNotifyReplyValidationError) Reason

Reason function returns reason value.

type DeleteNotifyRequest

type DeleteNotifyRequest struct {

	// 通知对象ID, 必须大于0, 路径参数
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

删除通知对象请求参数

func (*DeleteNotifyRequest) Descriptor deprecated

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

Deprecated: Use DeleteNotifyRequest.ProtoReflect.Descriptor instead.

func (*DeleteNotifyRequest) GetId

func (x *DeleteNotifyRequest) GetId() uint32

func (*DeleteNotifyRequest) ProtoMessage

func (*DeleteNotifyRequest) ProtoMessage()

func (*DeleteNotifyRequest) ProtoReflect

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

func (*DeleteNotifyRequest) Reset

func (x *DeleteNotifyRequest) Reset()

func (*DeleteNotifyRequest) String

func (x *DeleteNotifyRequest) String() string

func (*DeleteNotifyRequest) Validate

func (m *DeleteNotifyRequest) Validate() error

Validate checks the field values on DeleteNotifyRequest 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 (*DeleteNotifyRequest) ValidateAll

func (m *DeleteNotifyRequest) ValidateAll() error

ValidateAll checks the field values on DeleteNotifyRequest 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 DeleteNotifyRequestMultiError, or nil if none found.

type DeleteNotifyRequestMultiError

type DeleteNotifyRequestMultiError []error

DeleteNotifyRequestMultiError is an error wrapping multiple validation errors returned by DeleteNotifyRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteNotifyRequestMultiError) AllErrors

func (m DeleteNotifyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteNotifyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteNotifyRequestValidationError

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

DeleteNotifyRequestValidationError is the validation error returned by DeleteNotifyRequest.Validate if the designated constraints aren't met.

func (DeleteNotifyRequestValidationError) Cause

Cause function returns cause value.

func (DeleteNotifyRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteNotifyRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteNotifyRequestValidationError) Field

Field function returns field value.

func (DeleteNotifyRequestValidationError) Key

Key function returns key value.

func (DeleteNotifyRequestValidationError) Reason

Reason function returns reason value.

type DeleteTemplateReply

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

func (*DeleteTemplateReply) Descriptor deprecated

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

Deprecated: Use DeleteTemplateReply.ProtoReflect.Descriptor instead.

func (*DeleteTemplateReply) ProtoMessage

func (*DeleteTemplateReply) ProtoMessage()

func (*DeleteTemplateReply) ProtoReflect

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

func (*DeleteTemplateReply) Reset

func (x *DeleteTemplateReply) Reset()

func (*DeleteTemplateReply) String

func (x *DeleteTemplateReply) String() string

func (*DeleteTemplateReply) Validate

func (m *DeleteTemplateReply) Validate() error

Validate checks the field values on DeleteTemplateReply 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 (*DeleteTemplateReply) ValidateAll

func (m *DeleteTemplateReply) ValidateAll() error

ValidateAll checks the field values on DeleteTemplateReply 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 DeleteTemplateReplyMultiError, or nil if none found.

type DeleteTemplateReplyMultiError

type DeleteTemplateReplyMultiError []error

DeleteTemplateReplyMultiError is an error wrapping multiple validation errors returned by DeleteTemplateReply.ValidateAll() if the designated constraints aren't met.

func (DeleteTemplateReplyMultiError) AllErrors

func (m DeleteTemplateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteTemplateReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteTemplateReplyValidationError

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

DeleteTemplateReplyValidationError is the validation error returned by DeleteTemplateReply.Validate if the designated constraints aren't met.

func (DeleteTemplateReplyValidationError) Cause

Cause function returns cause value.

func (DeleteTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteTemplateReplyValidationError) Field

Field function returns field value.

func (DeleteTemplateReplyValidationError) Key

Key function returns key value.

func (DeleteTemplateReplyValidationError) Reason

Reason function returns reason value.

type DeleteTemplateRequest

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

删除模板请求参数

func (*DeleteTemplateRequest) Descriptor deprecated

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

Deprecated: Use DeleteTemplateRequest.ProtoReflect.Descriptor instead.

func (*DeleteTemplateRequest) GetId

func (x *DeleteTemplateRequest) GetId() uint32

func (*DeleteTemplateRequest) ProtoMessage

func (*DeleteTemplateRequest) ProtoMessage()

func (*DeleteTemplateRequest) ProtoReflect

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

func (*DeleteTemplateRequest) Reset

func (x *DeleteTemplateRequest) Reset()

func (*DeleteTemplateRequest) String

func (x *DeleteTemplateRequest) String() string

func (*DeleteTemplateRequest) Validate

func (m *DeleteTemplateRequest) Validate() error

Validate checks the field values on DeleteTemplateRequest 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 (*DeleteTemplateRequest) ValidateAll

func (m *DeleteTemplateRequest) ValidateAll() error

ValidateAll checks the field values on DeleteTemplateRequest 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 DeleteTemplateRequestMultiError, or nil if none found.

type DeleteTemplateRequestMultiError

type DeleteTemplateRequestMultiError []error

DeleteTemplateRequestMultiError is an error wrapping multiple validation errors returned by DeleteTemplateRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteTemplateRequestMultiError) AllErrors

func (m DeleteTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteTemplateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteTemplateRequestValidationError

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

DeleteTemplateRequestValidationError is the validation error returned by DeleteTemplateRequest.Validate if the designated constraints aren't met.

func (DeleteTemplateRequestValidationError) Cause

Cause function returns cause value.

func (DeleteTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteTemplateRequestValidationError) Field

Field function returns field value.

func (DeleteTemplateRequestValidationError) Key

Key function returns key value.

func (DeleteTemplateRequestValidationError) Reason

Reason function returns reason value.

type GetChatGroupReply

type GetChatGroupReply struct {

	// 群组详情
	Detail *api.ChatGroup `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

获取通知群组响应参数

func (*GetChatGroupReply) Descriptor deprecated

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

Deprecated: Use GetChatGroupReply.ProtoReflect.Descriptor instead.

func (*GetChatGroupReply) GetDetail

func (x *GetChatGroupReply) GetDetail() *api.ChatGroup

func (*GetChatGroupReply) ProtoMessage

func (*GetChatGroupReply) ProtoMessage()

func (*GetChatGroupReply) ProtoReflect

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

func (*GetChatGroupReply) Reset

func (x *GetChatGroupReply) Reset()

func (*GetChatGroupReply) String

func (x *GetChatGroupReply) String() string

func (*GetChatGroupReply) Validate

func (m *GetChatGroupReply) Validate() error

Validate checks the field values on GetChatGroupReply 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 (*GetChatGroupReply) ValidateAll

func (m *GetChatGroupReply) ValidateAll() error

ValidateAll checks the field values on GetChatGroupReply 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 GetChatGroupReplyMultiError, or nil if none found.

type GetChatGroupReplyMultiError

type GetChatGroupReplyMultiError []error

GetChatGroupReplyMultiError is an error wrapping multiple validation errors returned by GetChatGroupReply.ValidateAll() if the designated constraints aren't met.

func (GetChatGroupReplyMultiError) AllErrors

func (m GetChatGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetChatGroupReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetChatGroupReplyValidationError

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

GetChatGroupReplyValidationError is the validation error returned by GetChatGroupReply.Validate if the designated constraints aren't met.

func (GetChatGroupReplyValidationError) Cause

Cause function returns cause value.

func (GetChatGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (GetChatGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (GetChatGroupReplyValidationError) Field

Field function returns field value.

func (GetChatGroupReplyValidationError) Key

Key function returns key value.

func (GetChatGroupReplyValidationError) Reason

Reason function returns reason value.

type GetChatGroupRequest

type GetChatGroupRequest struct {

	// 需要获取的群组ID(大于0), 路径参数
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

获取通知群组请求参数

func (*GetChatGroupRequest) Descriptor deprecated

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

Deprecated: Use GetChatGroupRequest.ProtoReflect.Descriptor instead.

func (*GetChatGroupRequest) GetId

func (x *GetChatGroupRequest) GetId() uint32

func (*GetChatGroupRequest) ProtoMessage

func (*GetChatGroupRequest) ProtoMessage()

func (*GetChatGroupRequest) ProtoReflect

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

func (*GetChatGroupRequest) Reset

func (x *GetChatGroupRequest) Reset()

func (*GetChatGroupRequest) String

func (x *GetChatGroupRequest) String() string

func (*GetChatGroupRequest) Validate

func (m *GetChatGroupRequest) Validate() error

Validate checks the field values on GetChatGroupRequest 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 (*GetChatGroupRequest) ValidateAll

func (m *GetChatGroupRequest) ValidateAll() error

ValidateAll checks the field values on GetChatGroupRequest 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 GetChatGroupRequestMultiError, or nil if none found.

type GetChatGroupRequestMultiError

type GetChatGroupRequestMultiError []error

GetChatGroupRequestMultiError is an error wrapping multiple validation errors returned by GetChatGroupRequest.ValidateAll() if the designated constraints aren't met.

func (GetChatGroupRequestMultiError) AllErrors

func (m GetChatGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetChatGroupRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetChatGroupRequestValidationError

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

GetChatGroupRequestValidationError is the validation error returned by GetChatGroupRequest.Validate if the designated constraints aren't met.

func (GetChatGroupRequestValidationError) Cause

Cause function returns cause value.

func (GetChatGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (GetChatGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (GetChatGroupRequestValidationError) Field

Field function returns field value.

func (GetChatGroupRequestValidationError) Key

Key function returns key value.

func (GetChatGroupRequestValidationError) Reason

Reason function returns reason value.

type GetNotifyReply

type GetNotifyReply struct {

	// 通知对象详情
	Detail *api.NotifyV1 `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

获取通知对象详情响应参数

func (*GetNotifyReply) Descriptor deprecated

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

Deprecated: Use GetNotifyReply.ProtoReflect.Descriptor instead.

func (*GetNotifyReply) GetDetail

func (x *GetNotifyReply) GetDetail() *api.NotifyV1

func (*GetNotifyReply) ProtoMessage

func (*GetNotifyReply) ProtoMessage()

func (*GetNotifyReply) ProtoReflect

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

func (*GetNotifyReply) Reset

func (x *GetNotifyReply) Reset()

func (*GetNotifyReply) String

func (x *GetNotifyReply) String() string

func (*GetNotifyReply) Validate

func (m *GetNotifyReply) Validate() error

Validate checks the field values on GetNotifyReply 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 (*GetNotifyReply) ValidateAll

func (m *GetNotifyReply) ValidateAll() error

ValidateAll checks the field values on GetNotifyReply 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 GetNotifyReplyMultiError, or nil if none found.

type GetNotifyReplyMultiError

type GetNotifyReplyMultiError []error

GetNotifyReplyMultiError is an error wrapping multiple validation errors returned by GetNotifyReply.ValidateAll() if the designated constraints aren't met.

func (GetNotifyReplyMultiError) AllErrors

func (m GetNotifyReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetNotifyReplyMultiError) Error

func (m GetNotifyReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetNotifyReplyValidationError

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

GetNotifyReplyValidationError is the validation error returned by GetNotifyReply.Validate if the designated constraints aren't met.

func (GetNotifyReplyValidationError) Cause

Cause function returns cause value.

func (GetNotifyReplyValidationError) Error

Error satisfies the builtin error interface

func (GetNotifyReplyValidationError) ErrorName

func (e GetNotifyReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetNotifyReplyValidationError) Field

Field function returns field value.

func (GetNotifyReplyValidationError) Key

Key function returns key value.

func (GetNotifyReplyValidationError) Reason

Reason function returns reason value.

type GetNotifyRequest

type GetNotifyRequest struct {

	// 通知对象ID, 必须大于0, 路径参数
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

获取通知对象详情请求参数

func (*GetNotifyRequest) Descriptor deprecated

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

Deprecated: Use GetNotifyRequest.ProtoReflect.Descriptor instead.

func (*GetNotifyRequest) GetId

func (x *GetNotifyRequest) GetId() uint32

func (*GetNotifyRequest) ProtoMessage

func (*GetNotifyRequest) ProtoMessage()

func (*GetNotifyRequest) ProtoReflect

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

func (*GetNotifyRequest) Reset

func (x *GetNotifyRequest) Reset()

func (*GetNotifyRequest) String

func (x *GetNotifyRequest) String() string

func (*GetNotifyRequest) Validate

func (m *GetNotifyRequest) Validate() error

Validate checks the field values on GetNotifyRequest 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 (*GetNotifyRequest) ValidateAll

func (m *GetNotifyRequest) ValidateAll() error

ValidateAll checks the field values on GetNotifyRequest 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 GetNotifyRequestMultiError, or nil if none found.

type GetNotifyRequestMultiError

type GetNotifyRequestMultiError []error

GetNotifyRequestMultiError is an error wrapping multiple validation errors returned by GetNotifyRequest.ValidateAll() if the designated constraints aren't met.

func (GetNotifyRequestMultiError) AllErrors

func (m GetNotifyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetNotifyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetNotifyRequestValidationError

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

GetNotifyRequestValidationError is the validation error returned by GetNotifyRequest.Validate if the designated constraints aren't met.

func (GetNotifyRequestValidationError) Cause

Cause function returns cause value.

func (GetNotifyRequestValidationError) Error

Error satisfies the builtin error interface

func (GetNotifyRequestValidationError) ErrorName

ErrorName returns error name.

func (GetNotifyRequestValidationError) Field

Field function returns field value.

func (GetNotifyRequestValidationError) Key

Key function returns key value.

func (GetNotifyRequestValidationError) Reason

Reason function returns reason value.

type GetTemplateReply

type GetTemplateReply struct {
	Detail *api.NotifyTemplateItem `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTemplateReply) Descriptor deprecated

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

Deprecated: Use GetTemplateReply.ProtoReflect.Descriptor instead.

func (*GetTemplateReply) GetDetail

func (x *GetTemplateReply) GetDetail() *api.NotifyTemplateItem

func (*GetTemplateReply) ProtoMessage

func (*GetTemplateReply) ProtoMessage()

func (*GetTemplateReply) ProtoReflect

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

func (*GetTemplateReply) Reset

func (x *GetTemplateReply) Reset()

func (*GetTemplateReply) String

func (x *GetTemplateReply) String() string

func (*GetTemplateReply) Validate

func (m *GetTemplateReply) Validate() error

Validate checks the field values on GetTemplateReply 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 (*GetTemplateReply) ValidateAll

func (m *GetTemplateReply) ValidateAll() error

ValidateAll checks the field values on GetTemplateReply 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 GetTemplateReplyMultiError, or nil if none found.

type GetTemplateReplyMultiError

type GetTemplateReplyMultiError []error

GetTemplateReplyMultiError is an error wrapping multiple validation errors returned by GetTemplateReply.ValidateAll() if the designated constraints aren't met.

func (GetTemplateReplyMultiError) AllErrors

func (m GetTemplateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTemplateReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetTemplateReplyValidationError

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

GetTemplateReplyValidationError is the validation error returned by GetTemplateReply.Validate if the designated constraints aren't met.

func (GetTemplateReplyValidationError) Cause

Cause function returns cause value.

func (GetTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (GetTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (GetTemplateReplyValidationError) Field

Field function returns field value.

func (GetTemplateReplyValidationError) Key

Key function returns key value.

func (GetTemplateReplyValidationError) Reason

Reason function returns reason value.

type GetTemplateRequest

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

获取模板请求参数

func (*GetTemplateRequest) Descriptor deprecated

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

Deprecated: Use GetTemplateRequest.ProtoReflect.Descriptor instead.

func (*GetTemplateRequest) GetId

func (x *GetTemplateRequest) GetId() uint32

func (*GetTemplateRequest) ProtoMessage

func (*GetTemplateRequest) ProtoMessage()

func (*GetTemplateRequest) ProtoReflect

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

func (*GetTemplateRequest) Reset

func (x *GetTemplateRequest) Reset()

func (*GetTemplateRequest) String

func (x *GetTemplateRequest) String() string

func (*GetTemplateRequest) Validate

func (m *GetTemplateRequest) Validate() error

Validate checks the field values on GetTemplateRequest 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 (*GetTemplateRequest) ValidateAll

func (m *GetTemplateRequest) ValidateAll() error

ValidateAll checks the field values on GetTemplateRequest 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 GetTemplateRequestMultiError, or nil if none found.

type GetTemplateRequestMultiError

type GetTemplateRequestMultiError []error

GetTemplateRequestMultiError is an error wrapping multiple validation errors returned by GetTemplateRequest.ValidateAll() if the designated constraints aren't met.

func (GetTemplateRequestMultiError) AllErrors

func (m GetTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTemplateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetTemplateRequestValidationError

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

GetTemplateRequestValidationError is the validation error returned by GetTemplateRequest.Validate if the designated constraints aren't met.

func (GetTemplateRequestValidationError) Cause

Cause function returns cause value.

func (GetTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (GetTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (GetTemplateRequestValidationError) Field

Field function returns field value.

func (GetTemplateRequestValidationError) Key

Key function returns key value.

func (GetTemplateRequestValidationError) Reason

Reason function returns reason value.

type ListChatGroupReply

type ListChatGroupReply struct {

	// 分页参数
	Page *api.PageReply `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 群组列表
	List []*api.ChatGroup `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

获取通知群组列表响应参数

func (*ListChatGroupReply) Descriptor deprecated

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

Deprecated: Use ListChatGroupReply.ProtoReflect.Descriptor instead.

func (*ListChatGroupReply) GetList

func (x *ListChatGroupReply) GetList() []*api.ChatGroup

func (*ListChatGroupReply) GetPage

func (x *ListChatGroupReply) GetPage() *api.PageReply

func (*ListChatGroupReply) ProtoMessage

func (*ListChatGroupReply) ProtoMessage()

func (*ListChatGroupReply) ProtoReflect

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

func (*ListChatGroupReply) Reset

func (x *ListChatGroupReply) Reset()

func (*ListChatGroupReply) String

func (x *ListChatGroupReply) String() string

func (*ListChatGroupReply) Validate

func (m *ListChatGroupReply) Validate() error

Validate checks the field values on ListChatGroupReply 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 (*ListChatGroupReply) ValidateAll

func (m *ListChatGroupReply) ValidateAll() error

ValidateAll checks the field values on ListChatGroupReply 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 ListChatGroupReplyMultiError, or nil if none found.

type ListChatGroupReplyMultiError

type ListChatGroupReplyMultiError []error

ListChatGroupReplyMultiError is an error wrapping multiple validation errors returned by ListChatGroupReply.ValidateAll() if the designated constraints aren't met.

func (ListChatGroupReplyMultiError) AllErrors

func (m ListChatGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListChatGroupReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListChatGroupReplyValidationError

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

ListChatGroupReplyValidationError is the validation error returned by ListChatGroupReply.Validate if the designated constraints aren't met.

func (ListChatGroupReplyValidationError) Cause

Cause function returns cause value.

func (ListChatGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (ListChatGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (ListChatGroupReplyValidationError) Field

Field function returns field value.

func (ListChatGroupReplyValidationError) Key

Key function returns key value.

func (ListChatGroupReplyValidationError) Reason

Reason function returns reason value.

type ListChatGroupRequest

type ListChatGroupRequest struct {

	// 分页参数, 必须传递
	Page *api.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 关键字, 用于模糊查询, 非必填, 最大为20字符
	Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	// 群组状态
	Status api.Status `protobuf:"varint,3,opt,name=status,proto3,enum=api.Status" json:"status,omitempty"`
	// 所属平台
	App api.NotifyApp `protobuf:"varint,4,opt,name=app,proto3,enum=api.NotifyApp" json:"app,omitempty"`
	// contains filtered or unexported fields
}

获取通知群组列表请求参数

func (*ListChatGroupRequest) Descriptor deprecated

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

Deprecated: Use ListChatGroupRequest.ProtoReflect.Descriptor instead.

func (*ListChatGroupRequest) GetApp

func (x *ListChatGroupRequest) GetApp() api.NotifyApp

func (*ListChatGroupRequest) GetKeyword

func (x *ListChatGroupRequest) GetKeyword() string

func (*ListChatGroupRequest) GetPage

func (x *ListChatGroupRequest) GetPage() *api.PageRequest

func (*ListChatGroupRequest) GetStatus

func (x *ListChatGroupRequest) GetStatus() api.Status

func (*ListChatGroupRequest) ProtoMessage

func (*ListChatGroupRequest) ProtoMessage()

func (*ListChatGroupRequest) ProtoReflect

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

func (*ListChatGroupRequest) Reset

func (x *ListChatGroupRequest) Reset()

func (*ListChatGroupRequest) String

func (x *ListChatGroupRequest) String() string

func (*ListChatGroupRequest) Validate

func (m *ListChatGroupRequest) Validate() error

Validate checks the field values on ListChatGroupRequest 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 (*ListChatGroupRequest) ValidateAll

func (m *ListChatGroupRequest) ValidateAll() error

ValidateAll checks the field values on ListChatGroupRequest 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 ListChatGroupRequestMultiError, or nil if none found.

type ListChatGroupRequestMultiError

type ListChatGroupRequestMultiError []error

ListChatGroupRequestMultiError is an error wrapping multiple validation errors returned by ListChatGroupRequest.ValidateAll() if the designated constraints aren't met.

func (ListChatGroupRequestMultiError) AllErrors

func (m ListChatGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListChatGroupRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListChatGroupRequestValidationError

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

ListChatGroupRequestValidationError is the validation error returned by ListChatGroupRequest.Validate if the designated constraints aren't met.

func (ListChatGroupRequestValidationError) Cause

Cause function returns cause value.

func (ListChatGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (ListChatGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (ListChatGroupRequestValidationError) Field

Field function returns field value.

func (ListChatGroupRequestValidationError) Key

Key function returns key value.

func (ListChatGroupRequestValidationError) Reason

Reason function returns reason value.

type ListNotifyReply

type ListNotifyReply struct {

	// 分页参数
	Page *api.PageReply `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 通知对象列表
	List []*api.NotifyV1 `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

获取通知对象列表响应参数

func (*ListNotifyReply) Descriptor deprecated

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

Deprecated: Use ListNotifyReply.ProtoReflect.Descriptor instead.

func (*ListNotifyReply) GetList

func (x *ListNotifyReply) GetList() []*api.NotifyV1

func (*ListNotifyReply) GetPage

func (x *ListNotifyReply) GetPage() *api.PageReply

func (*ListNotifyReply) ProtoMessage

func (*ListNotifyReply) ProtoMessage()

func (*ListNotifyReply) ProtoReflect

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

func (*ListNotifyReply) Reset

func (x *ListNotifyReply) Reset()

func (*ListNotifyReply) String

func (x *ListNotifyReply) String() string

func (*ListNotifyReply) Validate

func (m *ListNotifyReply) Validate() error

Validate checks the field values on ListNotifyReply 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 (*ListNotifyReply) ValidateAll

func (m *ListNotifyReply) ValidateAll() error

ValidateAll checks the field values on ListNotifyReply 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 ListNotifyReplyMultiError, or nil if none found.

type ListNotifyReplyMultiError

type ListNotifyReplyMultiError []error

ListNotifyReplyMultiError is an error wrapping multiple validation errors returned by ListNotifyReply.ValidateAll() if the designated constraints aren't met.

func (ListNotifyReplyMultiError) AllErrors

func (m ListNotifyReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListNotifyReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListNotifyReplyValidationError

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

ListNotifyReplyValidationError is the validation error returned by ListNotifyReply.Validate if the designated constraints aren't met.

func (ListNotifyReplyValidationError) Cause

Cause function returns cause value.

func (ListNotifyReplyValidationError) Error

Error satisfies the builtin error interface

func (ListNotifyReplyValidationError) ErrorName

func (e ListNotifyReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListNotifyReplyValidationError) Field

Field function returns field value.

func (ListNotifyReplyValidationError) Key

Key function returns key value.

func (ListNotifyReplyValidationError) Reason

Reason function returns reason value.

type ListNotifyRequest

type ListNotifyRequest struct {

	// 分页参数, 必填
	Page *api.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 关键字, 字符串长度0-20, 可选, 用于模糊查询
	Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	// 状态, 枚举值, 可选, 用于过滤
	Status api.Status `protobuf:"varint,3,opt,name=status,proto3,enum=api.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

获取通知对象列表请求参数

func (*ListNotifyRequest) Descriptor deprecated

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

Deprecated: Use ListNotifyRequest.ProtoReflect.Descriptor instead.

func (*ListNotifyRequest) GetKeyword

func (x *ListNotifyRequest) GetKeyword() string

func (*ListNotifyRequest) GetPage

func (x *ListNotifyRequest) GetPage() *api.PageRequest

func (*ListNotifyRequest) GetStatus

func (x *ListNotifyRequest) GetStatus() api.Status

func (*ListNotifyRequest) ProtoMessage

func (*ListNotifyRequest) ProtoMessage()

func (*ListNotifyRequest) ProtoReflect

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

func (*ListNotifyRequest) Reset

func (x *ListNotifyRequest) Reset()

func (*ListNotifyRequest) String

func (x *ListNotifyRequest) String() string

func (*ListNotifyRequest) Validate

func (m *ListNotifyRequest) Validate() error

Validate checks the field values on ListNotifyRequest 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 (*ListNotifyRequest) ValidateAll

func (m *ListNotifyRequest) ValidateAll() error

ValidateAll checks the field values on ListNotifyRequest 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 ListNotifyRequestMultiError, or nil if none found.

type ListNotifyRequestMultiError

type ListNotifyRequestMultiError []error

ListNotifyRequestMultiError is an error wrapping multiple validation errors returned by ListNotifyRequest.ValidateAll() if the designated constraints aren't met.

func (ListNotifyRequestMultiError) AllErrors

func (m ListNotifyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListNotifyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListNotifyRequestValidationError

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

ListNotifyRequestValidationError is the validation error returned by ListNotifyRequest.Validate if the designated constraints aren't met.

func (ListNotifyRequestValidationError) Cause

Cause function returns cause value.

func (ListNotifyRequestValidationError) Error

Error satisfies the builtin error interface

func (ListNotifyRequestValidationError) ErrorName

ErrorName returns error name.

func (ListNotifyRequestValidationError) Field

Field function returns field value.

func (ListNotifyRequestValidationError) Key

Key function returns key value.

func (ListNotifyRequestValidationError) Reason

Reason function returns reason value.

type ListTemplateReply

type ListTemplateReply struct {
	Page *api.PageReply            `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	List []*api.NotifyTemplateItem `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTemplateReply) Descriptor deprecated

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

Deprecated: Use ListTemplateReply.ProtoReflect.Descriptor instead.

func (*ListTemplateReply) GetList

func (x *ListTemplateReply) GetList() []*api.NotifyTemplateItem

func (*ListTemplateReply) GetPage

func (x *ListTemplateReply) GetPage() *api.PageReply

func (*ListTemplateReply) ProtoMessage

func (*ListTemplateReply) ProtoMessage()

func (*ListTemplateReply) ProtoReflect

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

func (*ListTemplateReply) Reset

func (x *ListTemplateReply) Reset()

func (*ListTemplateReply) String

func (x *ListTemplateReply) String() string

func (*ListTemplateReply) Validate

func (m *ListTemplateReply) Validate() error

Validate checks the field values on ListTemplateReply 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 (*ListTemplateReply) ValidateAll

func (m *ListTemplateReply) ValidateAll() error

ValidateAll checks the field values on ListTemplateReply 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 ListTemplateReplyMultiError, or nil if none found.

type ListTemplateReplyMultiError

type ListTemplateReplyMultiError []error

ListTemplateReplyMultiError is an error wrapping multiple validation errors returned by ListTemplateReply.ValidateAll() if the designated constraints aren't met.

func (ListTemplateReplyMultiError) AllErrors

func (m ListTemplateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTemplateReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListTemplateReplyValidationError

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

ListTemplateReplyValidationError is the validation error returned by ListTemplateReply.Validate if the designated constraints aren't met.

func (ListTemplateReplyValidationError) Cause

Cause function returns cause value.

func (ListTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (ListTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (ListTemplateReplyValidationError) Field

Field function returns field value.

func (ListTemplateReplyValidationError) Key

Key function returns key value.

func (ListTemplateReplyValidationError) Reason

Reason function returns reason value.

type ListTemplateRequest

type ListTemplateRequest struct {
	Page       *api.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	StrategyId uint32           `protobuf:"varint,2,opt,name=strategyId,proto3" json:"strategyId,omitempty"`
	// contains filtered or unexported fields
}

获取模板列表请求参数

func (*ListTemplateRequest) Descriptor deprecated

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

Deprecated: Use ListTemplateRequest.ProtoReflect.Descriptor instead.

func (*ListTemplateRequest) GetPage

func (x *ListTemplateRequest) GetPage() *api.PageRequest

func (*ListTemplateRequest) GetStrategyId

func (x *ListTemplateRequest) GetStrategyId() uint32

func (*ListTemplateRequest) ProtoMessage

func (*ListTemplateRequest) ProtoMessage()

func (*ListTemplateRequest) ProtoReflect

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

func (*ListTemplateRequest) Reset

func (x *ListTemplateRequest) Reset()

func (*ListTemplateRequest) String

func (x *ListTemplateRequest) String() string

func (*ListTemplateRequest) Validate

func (m *ListTemplateRequest) Validate() error

Validate checks the field values on ListTemplateRequest 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 (*ListTemplateRequest) ValidateAll

func (m *ListTemplateRequest) ValidateAll() error

ValidateAll checks the field values on ListTemplateRequest 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 ListTemplateRequestMultiError, or nil if none found.

type ListTemplateRequestMultiError

type ListTemplateRequestMultiError []error

ListTemplateRequestMultiError is an error wrapping multiple validation errors returned by ListTemplateRequest.ValidateAll() if the designated constraints aren't met.

func (ListTemplateRequestMultiError) AllErrors

func (m ListTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTemplateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListTemplateRequestValidationError

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

ListTemplateRequestValidationError is the validation error returned by ListTemplateRequest.Validate if the designated constraints aren't met.

func (ListTemplateRequestValidationError) Cause

Cause function returns cause value.

func (ListTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (ListTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (ListTemplateRequestValidationError) Field

Field function returns field value.

func (ListTemplateRequestValidationError) Key

Key function returns key value.

func (ListTemplateRequestValidationError) Reason

Reason function returns reason value.

type NotifyClient

type NotifyClient interface {
	// 创建通知对象
	CreateNotify(ctx context.Context, in *CreateNotifyRequest, opts ...grpc.CallOption) (*CreateNotifyReply, error)
	// 更新通知对象
	UpdateNotify(ctx context.Context, in *UpdateNotifyRequest, opts ...grpc.CallOption) (*UpdateNotifyReply, error)
	// 删除通知对象
	DeleteNotify(ctx context.Context, in *DeleteNotifyRequest, opts ...grpc.CallOption) (*DeleteNotifyReply, error)
	// 获取通知对象详情
	GetNotify(ctx context.Context, in *GetNotifyRequest, opts ...grpc.CallOption) (*GetNotifyReply, error)
	// 获取通知对象列表
	ListNotify(ctx context.Context, in *ListNotifyRequest, opts ...grpc.CallOption) (*ListNotifyReply, error)
	// 获取通知对象列表(用于下拉选择)
	SelectNotify(ctx context.Context, in *SelectNotifyRequest, opts ...grpc.CallOption) (*SelectNotifyReply, error)
}

NotifyClient is the client API for Notify 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 NewNotifyClient

func NewNotifyClient(cc grpc.ClientConnInterface) NotifyClient

type NotifyHTTPClient

type NotifyHTTPClient interface {
	CreateNotify(ctx context.Context, req *CreateNotifyRequest, opts ...http.CallOption) (rsp *CreateNotifyReply, err error)
	DeleteNotify(ctx context.Context, req *DeleteNotifyRequest, opts ...http.CallOption) (rsp *DeleteNotifyReply, err error)
	GetNotify(ctx context.Context, req *GetNotifyRequest, opts ...http.CallOption) (rsp *GetNotifyReply, err error)
	ListNotify(ctx context.Context, req *ListNotifyRequest, opts ...http.CallOption) (rsp *ListNotifyReply, err error)
	SelectNotify(ctx context.Context, req *SelectNotifyRequest, opts ...http.CallOption) (rsp *SelectNotifyReply, err error)
	UpdateNotify(ctx context.Context, req *UpdateNotifyRequest, opts ...http.CallOption) (rsp *UpdateNotifyReply, err error)
}

func NewNotifyHTTPClient

func NewNotifyHTTPClient(client *http.Client) NotifyHTTPClient

type NotifyHTTPClientImpl

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

func (*NotifyHTTPClientImpl) CreateNotify

func (*NotifyHTTPClientImpl) DeleteNotify

func (*NotifyHTTPClientImpl) GetNotify

func (*NotifyHTTPClientImpl) ListNotify

func (*NotifyHTTPClientImpl) SelectNotify

func (*NotifyHTTPClientImpl) UpdateNotify

type NotifyHTTPServer

type NotifyHTTPServer interface {
	// CreateNotify 创建通知对象
	CreateNotify(context.Context, *CreateNotifyRequest) (*CreateNotifyReply, error)
	// DeleteNotify 删除通知对象
	DeleteNotify(context.Context, *DeleteNotifyRequest) (*DeleteNotifyReply, error)
	// GetNotify 获取通知对象详情
	GetNotify(context.Context, *GetNotifyRequest) (*GetNotifyReply, error)
	// ListNotify 获取通知对象列表
	ListNotify(context.Context, *ListNotifyRequest) (*ListNotifyReply, error)
	// SelectNotify 获取通知对象列表(用于下拉选择)
	SelectNotify(context.Context, *SelectNotifyRequest) (*SelectNotifyReply, error)
	// UpdateNotify 更新通知对象
	UpdateNotify(context.Context, *UpdateNotifyRequest) (*UpdateNotifyReply, error)
}

type NotifyServer

type NotifyServer interface {
	// 创建通知对象
	CreateNotify(context.Context, *CreateNotifyRequest) (*CreateNotifyReply, error)
	// 更新通知对象
	UpdateNotify(context.Context, *UpdateNotifyRequest) (*UpdateNotifyReply, error)
	// 删除通知对象
	DeleteNotify(context.Context, *DeleteNotifyRequest) (*DeleteNotifyReply, error)
	// 获取通知对象详情
	GetNotify(context.Context, *GetNotifyRequest) (*GetNotifyReply, error)
	// 获取通知对象列表
	ListNotify(context.Context, *ListNotifyRequest) (*ListNotifyReply, error)
	// 获取通知对象列表(用于下拉选择)
	SelectNotify(context.Context, *SelectNotifyRequest) (*SelectNotifyReply, error)
	// contains filtered or unexported methods
}

NotifyServer is the server API for Notify service. All implementations must embed UnimplementedNotifyServer for forward compatibility

type SelectChatGroupReply

type SelectChatGroupReply struct {

	// 分页参数
	Page *api.PageReply `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 群组列表
	List []*api.ChatGroupSelectV1 `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

获取通知群组列表(下拉选择)响应参数

func (*SelectChatGroupReply) Descriptor deprecated

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

Deprecated: Use SelectChatGroupReply.ProtoReflect.Descriptor instead.

func (*SelectChatGroupReply) GetList

func (x *SelectChatGroupReply) GetList() []*api.ChatGroupSelectV1

func (*SelectChatGroupReply) GetPage

func (x *SelectChatGroupReply) GetPage() *api.PageReply

func (*SelectChatGroupReply) ProtoMessage

func (*SelectChatGroupReply) ProtoMessage()

func (*SelectChatGroupReply) ProtoReflect

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

func (*SelectChatGroupReply) Reset

func (x *SelectChatGroupReply) Reset()

func (*SelectChatGroupReply) String

func (x *SelectChatGroupReply) String() string

func (*SelectChatGroupReply) Validate

func (m *SelectChatGroupReply) Validate() error

Validate checks the field values on SelectChatGroupReply 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 (*SelectChatGroupReply) ValidateAll

func (m *SelectChatGroupReply) ValidateAll() error

ValidateAll checks the field values on SelectChatGroupReply 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 SelectChatGroupReplyMultiError, or nil if none found.

type SelectChatGroupReplyMultiError

type SelectChatGroupReplyMultiError []error

SelectChatGroupReplyMultiError is an error wrapping multiple validation errors returned by SelectChatGroupReply.ValidateAll() if the designated constraints aren't met.

func (SelectChatGroupReplyMultiError) AllErrors

func (m SelectChatGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SelectChatGroupReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SelectChatGroupReplyValidationError

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

SelectChatGroupReplyValidationError is the validation error returned by SelectChatGroupReply.Validate if the designated constraints aren't met.

func (SelectChatGroupReplyValidationError) Cause

Cause function returns cause value.

func (SelectChatGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (SelectChatGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (SelectChatGroupReplyValidationError) Field

Field function returns field value.

func (SelectChatGroupReplyValidationError) Key

Key function returns key value.

func (SelectChatGroupReplyValidationError) Reason

Reason function returns reason value.

type SelectChatGroupRequest

type SelectChatGroupRequest struct {

	// 分页参数, 必须传递
	Page *api.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 关键字, 用于模糊查询, 非必填, 最大为20字符
	Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	// 群组状态
	Status api.Status `protobuf:"varint,3,opt,name=status,proto3,enum=api.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

获取通知群组列表(下拉选择)请求参数

func (*SelectChatGroupRequest) Descriptor deprecated

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

Deprecated: Use SelectChatGroupRequest.ProtoReflect.Descriptor instead.

func (*SelectChatGroupRequest) GetKeyword

func (x *SelectChatGroupRequest) GetKeyword() string

func (*SelectChatGroupRequest) GetPage

func (x *SelectChatGroupRequest) GetPage() *api.PageRequest

func (*SelectChatGroupRequest) GetStatus

func (x *SelectChatGroupRequest) GetStatus() api.Status

func (*SelectChatGroupRequest) ProtoMessage

func (*SelectChatGroupRequest) ProtoMessage()

func (*SelectChatGroupRequest) ProtoReflect

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

func (*SelectChatGroupRequest) Reset

func (x *SelectChatGroupRequest) Reset()

func (*SelectChatGroupRequest) String

func (x *SelectChatGroupRequest) String() string

func (*SelectChatGroupRequest) Validate

func (m *SelectChatGroupRequest) Validate() error

Validate checks the field values on SelectChatGroupRequest 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 (*SelectChatGroupRequest) ValidateAll

func (m *SelectChatGroupRequest) ValidateAll() error

ValidateAll checks the field values on SelectChatGroupRequest 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 SelectChatGroupRequestMultiError, or nil if none found.

type SelectChatGroupRequestMultiError

type SelectChatGroupRequestMultiError []error

SelectChatGroupRequestMultiError is an error wrapping multiple validation errors returned by SelectChatGroupRequest.ValidateAll() if the designated constraints aren't met.

func (SelectChatGroupRequestMultiError) AllErrors

func (m SelectChatGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SelectChatGroupRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SelectChatGroupRequestValidationError

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

SelectChatGroupRequestValidationError is the validation error returned by SelectChatGroupRequest.Validate if the designated constraints aren't met.

func (SelectChatGroupRequestValidationError) Cause

Cause function returns cause value.

func (SelectChatGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (SelectChatGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (SelectChatGroupRequestValidationError) Field

Field function returns field value.

func (SelectChatGroupRequestValidationError) Key

Key function returns key value.

func (SelectChatGroupRequestValidationError) Reason

Reason function returns reason value.

type SelectNotifyReply

type SelectNotifyReply struct {

	// 分页参数
	Page *api.PageReply `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 通知对象列表
	List []*api.NotifySelectV1 `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

获取通知对象列表(用于下拉选择)响应参数

func (*SelectNotifyReply) Descriptor deprecated

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

Deprecated: Use SelectNotifyReply.ProtoReflect.Descriptor instead.

func (*SelectNotifyReply) GetList

func (x *SelectNotifyReply) GetList() []*api.NotifySelectV1

func (*SelectNotifyReply) GetPage

func (x *SelectNotifyReply) GetPage() *api.PageReply

func (*SelectNotifyReply) ProtoMessage

func (*SelectNotifyReply) ProtoMessage()

func (*SelectNotifyReply) ProtoReflect

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

func (*SelectNotifyReply) Reset

func (x *SelectNotifyReply) Reset()

func (*SelectNotifyReply) String

func (x *SelectNotifyReply) String() string

func (*SelectNotifyReply) Validate

func (m *SelectNotifyReply) Validate() error

Validate checks the field values on SelectNotifyReply 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 (*SelectNotifyReply) ValidateAll

func (m *SelectNotifyReply) ValidateAll() error

ValidateAll checks the field values on SelectNotifyReply 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 SelectNotifyReplyMultiError, or nil if none found.

type SelectNotifyReplyMultiError

type SelectNotifyReplyMultiError []error

SelectNotifyReplyMultiError is an error wrapping multiple validation errors returned by SelectNotifyReply.ValidateAll() if the designated constraints aren't met.

func (SelectNotifyReplyMultiError) AllErrors

func (m SelectNotifyReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SelectNotifyReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SelectNotifyReplyValidationError

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

SelectNotifyReplyValidationError is the validation error returned by SelectNotifyReply.Validate if the designated constraints aren't met.

func (SelectNotifyReplyValidationError) Cause

Cause function returns cause value.

func (SelectNotifyReplyValidationError) Error

Error satisfies the builtin error interface

func (SelectNotifyReplyValidationError) ErrorName

ErrorName returns error name.

func (SelectNotifyReplyValidationError) Field

Field function returns field value.

func (SelectNotifyReplyValidationError) Key

Key function returns key value.

func (SelectNotifyReplyValidationError) Reason

Reason function returns reason value.

type SelectNotifyRequest

type SelectNotifyRequest struct {

	// 分页参数, 必填
	Page *api.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 关键字, 字符串长度0-20, 可选, 用于模糊查询
	Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	// 状态, 枚举值, 可选, 用于过滤
	Status api.Status `protobuf:"varint,3,opt,name=status,proto3,enum=api.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

获取通知对象列表(用于下拉选择)请求参数

func (*SelectNotifyRequest) Descriptor deprecated

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

Deprecated: Use SelectNotifyRequest.ProtoReflect.Descriptor instead.

func (*SelectNotifyRequest) GetKeyword

func (x *SelectNotifyRequest) GetKeyword() string

func (*SelectNotifyRequest) GetPage

func (x *SelectNotifyRequest) GetPage() *api.PageRequest

func (*SelectNotifyRequest) GetStatus

func (x *SelectNotifyRequest) GetStatus() api.Status

func (*SelectNotifyRequest) ProtoMessage

func (*SelectNotifyRequest) ProtoMessage()

func (*SelectNotifyRequest) ProtoReflect

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

func (*SelectNotifyRequest) Reset

func (x *SelectNotifyRequest) Reset()

func (*SelectNotifyRequest) String

func (x *SelectNotifyRequest) String() string

func (*SelectNotifyRequest) Validate

func (m *SelectNotifyRequest) Validate() error

Validate checks the field values on SelectNotifyRequest 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 (*SelectNotifyRequest) ValidateAll

func (m *SelectNotifyRequest) ValidateAll() error

ValidateAll checks the field values on SelectNotifyRequest 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 SelectNotifyRequestMultiError, or nil if none found.

type SelectNotifyRequestMultiError

type SelectNotifyRequestMultiError []error

SelectNotifyRequestMultiError is an error wrapping multiple validation errors returned by SelectNotifyRequest.ValidateAll() if the designated constraints aren't met.

func (SelectNotifyRequestMultiError) AllErrors

func (m SelectNotifyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SelectNotifyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SelectNotifyRequestValidationError

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

SelectNotifyRequestValidationError is the validation error returned by SelectNotifyRequest.Validate if the designated constraints aren't met.

func (SelectNotifyRequestValidationError) Cause

Cause function returns cause value.

func (SelectNotifyRequestValidationError) Error

Error satisfies the builtin error interface

func (SelectNotifyRequestValidationError) ErrorName

ErrorName returns error name.

func (SelectNotifyRequestValidationError) Field

Field function returns field value.

func (SelectNotifyRequestValidationError) Key

Key function returns key value.

func (SelectNotifyRequestValidationError) Reason

Reason function returns reason value.

type TemplateClient

type TemplateClient interface {
	// 创建模板
	CreateTemplate(ctx context.Context, in *CreateTemplateRequest, opts ...grpc.CallOption) (*CreateTemplateReply, error)
	// 更新模板
	UpdateTemplate(ctx context.Context, in *UpdateTemplateRequest, opts ...grpc.CallOption) (*UpdateTemplateReply, error)
	// 删除模板
	DeleteTemplate(ctx context.Context, in *DeleteTemplateRequest, opts ...grpc.CallOption) (*DeleteTemplateReply, error)
	// 获取模板
	GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateReply, error)
	// 获取模板列表
	ListTemplate(ctx context.Context, in *ListTemplateRequest, opts ...grpc.CallOption) (*ListTemplateReply, error)
}

TemplateClient is the client API for Template 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 NewTemplateClient

func NewTemplateClient(cc grpc.ClientConnInterface) TemplateClient

type TemplateHTTPClient

type TemplateHTTPClient interface {
	CreateTemplate(ctx context.Context, req *CreateTemplateRequest, opts ...http.CallOption) (rsp *CreateTemplateReply, err error)
	DeleteTemplate(ctx context.Context, req *DeleteTemplateRequest, opts ...http.CallOption) (rsp *DeleteTemplateReply, err error)
	GetTemplate(ctx context.Context, req *GetTemplateRequest, opts ...http.CallOption) (rsp *GetTemplateReply, err error)
	ListTemplate(ctx context.Context, req *ListTemplateRequest, opts ...http.CallOption) (rsp *ListTemplateReply, err error)
	UpdateTemplate(ctx context.Context, req *UpdateTemplateRequest, opts ...http.CallOption) (rsp *UpdateTemplateReply, err error)
}

func NewTemplateHTTPClient

func NewTemplateHTTPClient(client *http.Client) TemplateHTTPClient

type TemplateHTTPClientImpl

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

func (*TemplateHTTPClientImpl) CreateTemplate

func (*TemplateHTTPClientImpl) DeleteTemplate

func (*TemplateHTTPClientImpl) GetTemplate

func (*TemplateHTTPClientImpl) ListTemplate

func (*TemplateHTTPClientImpl) UpdateTemplate

type TemplateHTTPServer

type TemplateHTTPServer interface {
	// CreateTemplate 创建模板
	CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateReply, error)
	// DeleteTemplate 删除模板
	DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateReply, error)
	// GetTemplate 获取模板
	GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateReply, error)
	// ListTemplate 获取模板列表
	ListTemplate(context.Context, *ListTemplateRequest) (*ListTemplateReply, error)
	// UpdateTemplate 更新模板
	UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateReply, error)
}

type TemplateServer

type TemplateServer interface {
	// 创建模板
	CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateReply, error)
	// 更新模板
	UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateReply, error)
	// 删除模板
	DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateReply, error)
	// 获取模板
	GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateReply, error)
	// 获取模板列表
	ListTemplate(context.Context, *ListTemplateRequest) (*ListTemplateReply, error)
	// contains filtered or unexported methods
}

TemplateServer is the server API for Template service. All implementations must embed UnimplementedTemplateServer for forward compatibility

type UnimplementedChatGroupServer

type UnimplementedChatGroupServer struct {
}

UnimplementedChatGroupServer must be embedded to have forward compatible implementations.

func (UnimplementedChatGroupServer) CreateChatGroup

func (UnimplementedChatGroupServer) DeleteChatGroup

func (UnimplementedChatGroupServer) GetChatGroup

func (UnimplementedChatGroupServer) ListChatGroup

func (UnimplementedChatGroupServer) SelectChatGroup

func (UnimplementedChatGroupServer) UpdateChatGroup

type UnimplementedNotifyServer

type UnimplementedNotifyServer struct {
}

UnimplementedNotifyServer must be embedded to have forward compatible implementations.

func (UnimplementedNotifyServer) CreateNotify

func (UnimplementedNotifyServer) DeleteNotify

func (UnimplementedNotifyServer) GetNotify

func (UnimplementedNotifyServer) ListNotify

func (UnimplementedNotifyServer) SelectNotify

func (UnimplementedNotifyServer) UpdateNotify

type UnimplementedTemplateServer

type UnimplementedTemplateServer struct {
}

UnimplementedTemplateServer must be embedded to have forward compatible implementations.

func (UnimplementedTemplateServer) CreateTemplate

func (UnimplementedTemplateServer) DeleteTemplate

func (UnimplementedTemplateServer) GetTemplate

func (UnimplementedTemplateServer) ListTemplate

func (UnimplementedTemplateServer) UpdateTemplate

type UnsafeChatGroupServer

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

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

type UnsafeNotifyServer

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

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

type UnsafeTemplateServer

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

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

type UpdateChatGroupReply

type UpdateChatGroupReply struct {

	// 群组ID, 成功会返回该参数
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

更新通知群组响应参数

func (*UpdateChatGroupReply) Descriptor deprecated

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

Deprecated: Use UpdateChatGroupReply.ProtoReflect.Descriptor instead.

func (*UpdateChatGroupReply) GetId

func (x *UpdateChatGroupReply) GetId() uint32

func (*UpdateChatGroupReply) ProtoMessage

func (*UpdateChatGroupReply) ProtoMessage()

func (*UpdateChatGroupReply) ProtoReflect

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

func (*UpdateChatGroupReply) Reset

func (x *UpdateChatGroupReply) Reset()

func (*UpdateChatGroupReply) String

func (x *UpdateChatGroupReply) String() string

func (*UpdateChatGroupReply) Validate

func (m *UpdateChatGroupReply) Validate() error

Validate checks the field values on UpdateChatGroupReply 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 (*UpdateChatGroupReply) ValidateAll

func (m *UpdateChatGroupReply) ValidateAll() error

ValidateAll checks the field values on UpdateChatGroupReply 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 UpdateChatGroupReplyMultiError, or nil if none found.

type UpdateChatGroupReplyMultiError

type UpdateChatGroupReplyMultiError []error

UpdateChatGroupReplyMultiError is an error wrapping multiple validation errors returned by UpdateChatGroupReply.ValidateAll() if the designated constraints aren't met.

func (UpdateChatGroupReplyMultiError) AllErrors

func (m UpdateChatGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateChatGroupReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateChatGroupReplyValidationError

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

UpdateChatGroupReplyValidationError is the validation error returned by UpdateChatGroupReply.Validate if the designated constraints aren't met.

func (UpdateChatGroupReplyValidationError) Cause

Cause function returns cause value.

func (UpdateChatGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateChatGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateChatGroupReplyValidationError) Field

Field function returns field value.

func (UpdateChatGroupReplyValidationError) Key

Key function returns key value.

func (UpdateChatGroupReplyValidationError) Reason

Reason function returns reason value.

type UpdateChatGroupRequest

type UpdateChatGroupRequest struct {

	// 群组ID(大于0), 路径参数
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 群组名称(一般指IM群, 例如微信群、钉钉群等)
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 群组备注, 不允许超过255字符
	Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
	// hook一般是机器人, 这个字段是机器人的名称(也可以是hook别名)
	HookName string `protobuf:"bytes,4,opt,name=hookName,proto3" json:"hookName,omitempty"`
	// contains filtered or unexported fields
}

更新通知群组请求参数

func (*UpdateChatGroupRequest) Descriptor deprecated

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

Deprecated: Use UpdateChatGroupRequest.ProtoReflect.Descriptor instead.

func (*UpdateChatGroupRequest) GetHookName

func (x *UpdateChatGroupRequest) GetHookName() string

func (*UpdateChatGroupRequest) GetId

func (x *UpdateChatGroupRequest) GetId() uint32

func (*UpdateChatGroupRequest) GetName

func (x *UpdateChatGroupRequest) GetName() string

func (*UpdateChatGroupRequest) GetRemark

func (x *UpdateChatGroupRequest) GetRemark() string

func (*UpdateChatGroupRequest) ProtoMessage

func (*UpdateChatGroupRequest) ProtoMessage()

func (*UpdateChatGroupRequest) ProtoReflect

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

func (*UpdateChatGroupRequest) Reset

func (x *UpdateChatGroupRequest) Reset()

func (*UpdateChatGroupRequest) String

func (x *UpdateChatGroupRequest) String() string

func (*UpdateChatGroupRequest) Validate

func (m *UpdateChatGroupRequest) Validate() error

Validate checks the field values on UpdateChatGroupRequest 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 (*UpdateChatGroupRequest) ValidateAll

func (m *UpdateChatGroupRequest) ValidateAll() error

ValidateAll checks the field values on UpdateChatGroupRequest 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 UpdateChatGroupRequestMultiError, or nil if none found.

type UpdateChatGroupRequestMultiError

type UpdateChatGroupRequestMultiError []error

UpdateChatGroupRequestMultiError is an error wrapping multiple validation errors returned by UpdateChatGroupRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateChatGroupRequestMultiError) AllErrors

func (m UpdateChatGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateChatGroupRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateChatGroupRequestValidationError

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

UpdateChatGroupRequestValidationError is the validation error returned by UpdateChatGroupRequest.Validate if the designated constraints aren't met.

func (UpdateChatGroupRequestValidationError) Cause

Cause function returns cause value.

func (UpdateChatGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateChatGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateChatGroupRequestValidationError) Field

Field function returns field value.

func (UpdateChatGroupRequestValidationError) Key

Key function returns key value.

func (UpdateChatGroupRequestValidationError) Reason

Reason function returns reason value.

type UpdateNotifyReply

type UpdateNotifyReply struct {

	// 通知对象ID, 更新成功后返回
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

更新通知对象响应参数

func (*UpdateNotifyReply) Descriptor deprecated

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

Deprecated: Use UpdateNotifyReply.ProtoReflect.Descriptor instead.

func (*UpdateNotifyReply) GetId

func (x *UpdateNotifyReply) GetId() uint32

func (*UpdateNotifyReply) ProtoMessage

func (*UpdateNotifyReply) ProtoMessage()

func (*UpdateNotifyReply) ProtoReflect

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

func (*UpdateNotifyReply) Reset

func (x *UpdateNotifyReply) Reset()

func (*UpdateNotifyReply) String

func (x *UpdateNotifyReply) String() string

func (*UpdateNotifyReply) Validate

func (m *UpdateNotifyReply) Validate() error

Validate checks the field values on UpdateNotifyReply 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 (*UpdateNotifyReply) ValidateAll

func (m *UpdateNotifyReply) ValidateAll() error

ValidateAll checks the field values on UpdateNotifyReply 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 UpdateNotifyReplyMultiError, or nil if none found.

type UpdateNotifyReplyMultiError

type UpdateNotifyReplyMultiError []error

UpdateNotifyReplyMultiError is an error wrapping multiple validation errors returned by UpdateNotifyReply.ValidateAll() if the designated constraints aren't met.

func (UpdateNotifyReplyMultiError) AllErrors

func (m UpdateNotifyReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateNotifyReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateNotifyReplyValidationError

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

UpdateNotifyReplyValidationError is the validation error returned by UpdateNotifyReply.Validate if the designated constraints aren't met.

func (UpdateNotifyReplyValidationError) Cause

Cause function returns cause value.

func (UpdateNotifyReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateNotifyReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateNotifyReplyValidationError) Field

Field function returns field value.

func (UpdateNotifyReplyValidationError) Key

Key function returns key value.

func (UpdateNotifyReplyValidationError) Reason

Reason function returns reason value.

type UpdateNotifyRequest

type UpdateNotifyRequest struct {

	// 通知对象ID, 必须大于0, 路径参数
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 通知对象名称, 字符串长度2-20
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 备注, 字符串长度0-255
	Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
	// 通知的人员, 最多为100个通知人员对象
	Members []*api.BeNotifyMember `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"`
	// 通知的群组, 最多为100个群组ID
	ChatGroups []uint32 `protobuf:"varint,5,rep,packed,name=chatGroups,proto3" json:"chatGroups,omitempty"`
	// 状态
	Status api.Status `protobuf:"varint,6,opt,name=status,proto3,enum=api.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

更新通知对象请求参数

func (*UpdateNotifyRequest) Descriptor deprecated

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

Deprecated: Use UpdateNotifyRequest.ProtoReflect.Descriptor instead.

func (*UpdateNotifyRequest) GetChatGroups

func (x *UpdateNotifyRequest) GetChatGroups() []uint32

func (*UpdateNotifyRequest) GetId

func (x *UpdateNotifyRequest) GetId() uint32

func (*UpdateNotifyRequest) GetMembers

func (x *UpdateNotifyRequest) GetMembers() []*api.BeNotifyMember

func (*UpdateNotifyRequest) GetName

func (x *UpdateNotifyRequest) GetName() string

func (*UpdateNotifyRequest) GetRemark

func (x *UpdateNotifyRequest) GetRemark() string

func (*UpdateNotifyRequest) GetStatus

func (x *UpdateNotifyRequest) GetStatus() api.Status

func (*UpdateNotifyRequest) ProtoMessage

func (*UpdateNotifyRequest) ProtoMessage()

func (*UpdateNotifyRequest) ProtoReflect

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

func (*UpdateNotifyRequest) Reset

func (x *UpdateNotifyRequest) Reset()

func (*UpdateNotifyRequest) String

func (x *UpdateNotifyRequest) String() string

func (*UpdateNotifyRequest) Validate

func (m *UpdateNotifyRequest) Validate() error

Validate checks the field values on UpdateNotifyRequest 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 (*UpdateNotifyRequest) ValidateAll

func (m *UpdateNotifyRequest) ValidateAll() error

ValidateAll checks the field values on UpdateNotifyRequest 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 UpdateNotifyRequestMultiError, or nil if none found.

type UpdateNotifyRequestMultiError

type UpdateNotifyRequestMultiError []error

UpdateNotifyRequestMultiError is an error wrapping multiple validation errors returned by UpdateNotifyRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateNotifyRequestMultiError) AllErrors

func (m UpdateNotifyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateNotifyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateNotifyRequestValidationError

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

UpdateNotifyRequestValidationError is the validation error returned by UpdateNotifyRequest.Validate if the designated constraints aren't met.

func (UpdateNotifyRequestValidationError) Cause

Cause function returns cause value.

func (UpdateNotifyRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateNotifyRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateNotifyRequestValidationError) Field

Field function returns field value.

func (UpdateNotifyRequestValidationError) Key

Key function returns key value.

func (UpdateNotifyRequestValidationError) Reason

Reason function returns reason value.

type UpdateTemplateReply

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

func (*UpdateTemplateReply) Descriptor deprecated

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

Deprecated: Use UpdateTemplateReply.ProtoReflect.Descriptor instead.

func (*UpdateTemplateReply) ProtoMessage

func (*UpdateTemplateReply) ProtoMessage()

func (*UpdateTemplateReply) ProtoReflect

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

func (*UpdateTemplateReply) Reset

func (x *UpdateTemplateReply) Reset()

func (*UpdateTemplateReply) String

func (x *UpdateTemplateReply) String() string

func (*UpdateTemplateReply) Validate

func (m *UpdateTemplateReply) Validate() error

Validate checks the field values on UpdateTemplateReply 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 (*UpdateTemplateReply) ValidateAll

func (m *UpdateTemplateReply) ValidateAll() error

ValidateAll checks the field values on UpdateTemplateReply 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 UpdateTemplateReplyMultiError, or nil if none found.

type UpdateTemplateReplyMultiError

type UpdateTemplateReplyMultiError []error

UpdateTemplateReplyMultiError is an error wrapping multiple validation errors returned by UpdateTemplateReply.ValidateAll() if the designated constraints aren't met.

func (UpdateTemplateReplyMultiError) AllErrors

func (m UpdateTemplateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateTemplateReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateTemplateReplyValidationError

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

UpdateTemplateReplyValidationError is the validation error returned by UpdateTemplateReply.Validate if the designated constraints aren't met.

func (UpdateTemplateReplyValidationError) Cause

Cause function returns cause value.

func (UpdateTemplateReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateTemplateReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateTemplateReplyValidationError) Field

Field function returns field value.

func (UpdateTemplateReplyValidationError) Key

Key function returns key value.

func (UpdateTemplateReplyValidationError) Reason

Reason function returns reason value.

type UpdateTemplateRequest

type UpdateTemplateRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 模板内容
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// 所属策略
	StrategyId uint32 `protobuf:"varint,3,opt,name=strategyId,proto3" json:"strategyId,omitempty"`
	// 模板类型
	NotifyType api.NotifyTemplateType `protobuf:"varint,4,opt,name=notifyType,proto3,enum=api.NotifyTemplateType" json:"notifyType,omitempty"`
	// contains filtered or unexported fields
}

更新模板请求参数

func (*UpdateTemplateRequest) Descriptor deprecated

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

Deprecated: Use UpdateTemplateRequest.ProtoReflect.Descriptor instead.

func (*UpdateTemplateRequest) GetContent

func (x *UpdateTemplateRequest) GetContent() string

func (*UpdateTemplateRequest) GetId

func (x *UpdateTemplateRequest) GetId() uint32

func (*UpdateTemplateRequest) GetNotifyType

func (x *UpdateTemplateRequest) GetNotifyType() api.NotifyTemplateType

func (*UpdateTemplateRequest) GetStrategyId

func (x *UpdateTemplateRequest) GetStrategyId() uint32

func (*UpdateTemplateRequest) ProtoMessage

func (*UpdateTemplateRequest) ProtoMessage()

func (*UpdateTemplateRequest) ProtoReflect

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

func (*UpdateTemplateRequest) Reset

func (x *UpdateTemplateRequest) Reset()

func (*UpdateTemplateRequest) String

func (x *UpdateTemplateRequest) String() string

func (*UpdateTemplateRequest) Validate

func (m *UpdateTemplateRequest) Validate() error

Validate checks the field values on UpdateTemplateRequest 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 (*UpdateTemplateRequest) ValidateAll

func (m *UpdateTemplateRequest) ValidateAll() error

ValidateAll checks the field values on UpdateTemplateRequest 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 UpdateTemplateRequestMultiError, or nil if none found.

type UpdateTemplateRequestMultiError

type UpdateTemplateRequestMultiError []error

UpdateTemplateRequestMultiError is an error wrapping multiple validation errors returned by UpdateTemplateRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateTemplateRequestMultiError) AllErrors

func (m UpdateTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateTemplateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateTemplateRequestValidationError

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

UpdateTemplateRequestValidationError is the validation error returned by UpdateTemplateRequest.Validate if the designated constraints aren't met.

func (UpdateTemplateRequestValidationError) Cause

Cause function returns cause value.

func (UpdateTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateTemplateRequestValidationError) Field

Field function returns field value.

func (UpdateTemplateRequestValidationError) Key

Key function returns key value.

func (UpdateTemplateRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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