approval

package
v0.0.0-...-c01aa29 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "approval"
)

Variables

View Source
var (
	Provider_name = map[int32]string{
		0: "DEVCLOUD",
		1: "FEISHU",
	}
	Provider_value = map[string]int32{
		"DEVCLOUD": 0,
		"FEISHU":   1,
	}
)

Enum value maps for Provider.

View Source
var File_api_apps_approval_pb_approval_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "infraboard.workorder.approval.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateApproval",
			Handler:    _Service_CreateApproval_Handler,
		},
		{
			MethodName: "QueryApproval",
			Handler:    _Service_QueryApproval_Handler,
		},
		{
			MethodName: "DescribeApproval",
			Handler:    _Service_DescribeApproval_Handler,
		},
		{
			MethodName: "UpdateApproval",
			Handler:    _Service_UpdateApproval_Handler,
		},
		{
			MethodName: "DeleteApproval",
			Handler:    _Service_DeleteApproval_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/apps/approval/pb/approval.proto",
}

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

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type Approval

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

func (*Approval) Descriptor deprecated

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

Deprecated: Use Approval.ProtoReflect.Descriptor instead.

func (*Approval) ProtoMessage

func (*Approval) ProtoMessage()

func (*Approval) ProtoReflect

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

func (*Approval) Reset

func (x *Approval) Reset()

func (*Approval) String

func (x *Approval) String() string

type ApprovalSet

type ApprovalSet struct {

	// 分页时,返回总数量
	// @gotags: json:"total"
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total"`
	// 一页的数据
	// @gotags: json:"items"
	Items []*Approval `protobuf:"bytes,2,rep,name=items,proto3" json:"items"`
	// contains filtered or unexported fields
}

func (*ApprovalSet) Descriptor deprecated

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

Deprecated: Use ApprovalSet.ProtoReflect.Descriptor instead.

func (*ApprovalSet) GetItems

func (x *ApprovalSet) GetItems() []*Approval

func (*ApprovalSet) GetTotal

func (x *ApprovalSet) GetTotal() int64

func (*ApprovalSet) ProtoMessage

func (*ApprovalSet) ProtoMessage()

func (*ApprovalSet) ProtoReflect

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

func (*ApprovalSet) Reset

func (x *ApprovalSet) Reset()

func (*ApprovalSet) String

func (x *ApprovalSet) String() string

type CreateApprovalRequest

type CreateApprovalRequest struct {

	// 工单对接的第三方系统
	// @gotags: json:"provider" bson:"provider"
	Provider Provider `protobuf:"varint,1,opt,name=provider,proto3,enum=infraboard.workorder.approval.Provider" json:"provider" bson:"provider"`
	// 工单模版编号, 用于对接
	// @gotags: json:"approval_code" bson:"approval_code"
	ApprovalCode string `protobuf:"bytes,2,opt,name=approval_code,json=approvalCode,proto3" json:"approval_code" bson:"approval_code"`
	// 工单状态
	// @gotags: json:"status" bson:"status"
	Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status" bson:"status"`
	// contains filtered or unexported fields
}

func (*CreateApprovalRequest) Descriptor deprecated

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

Deprecated: Use CreateApprovalRequest.ProtoReflect.Descriptor instead.

func (*CreateApprovalRequest) GetApprovalCode

func (x *CreateApprovalRequest) GetApprovalCode() string

func (*CreateApprovalRequest) GetProvider

func (x *CreateApprovalRequest) GetProvider() Provider

func (*CreateApprovalRequest) GetStatus

func (x *CreateApprovalRequest) GetStatus() string

func (*CreateApprovalRequest) ProtoMessage

func (*CreateApprovalRequest) ProtoMessage()

func (*CreateApprovalRequest) ProtoReflect

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

func (*CreateApprovalRequest) Reset

func (x *CreateApprovalRequest) Reset()

func (*CreateApprovalRequest) String

func (x *CreateApprovalRequest) String() string

type DeleteApprovalRequest

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

func (*DeleteApprovalRequest) Descriptor deprecated

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

Deprecated: Use DeleteApprovalRequest.ProtoReflect.Descriptor instead.

func (*DeleteApprovalRequest) ProtoMessage

func (*DeleteApprovalRequest) ProtoMessage()

func (*DeleteApprovalRequest) ProtoReflect

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

func (*DeleteApprovalRequest) Reset

func (x *DeleteApprovalRequest) Reset()

func (*DeleteApprovalRequest) String

func (x *DeleteApprovalRequest) String() string

type DescribeApprovalRequest

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

func (*DescribeApprovalRequest) Descriptor deprecated

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

Deprecated: Use DescribeApprovalRequest.ProtoReflect.Descriptor instead.

func (*DescribeApprovalRequest) ProtoMessage

func (*DescribeApprovalRequest) ProtoMessage()

func (*DescribeApprovalRequest) ProtoReflect

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

func (*DescribeApprovalRequest) Reset

func (x *DescribeApprovalRequest) Reset()

func (*DescribeApprovalRequest) String

func (x *DescribeApprovalRequest) String() string

type Provider

type Provider int32
const (
	Provider_DEVCLOUD Provider = 0
	Provider_FEISHU   Provider = 1
)

func (Provider) Descriptor

func (Provider) Descriptor() protoreflect.EnumDescriptor

func (Provider) Enum

func (x Provider) Enum() *Provider

func (Provider) EnumDescriptor deprecated

func (Provider) EnumDescriptor() ([]byte, []int)

Deprecated: Use Provider.Descriptor instead.

func (Provider) Number

func (x Provider) Number() protoreflect.EnumNumber

func (Provider) String

func (x Provider) String() string

func (Provider) Type

type QueryApprovalRequest

type QueryApprovalRequest struct {

	// 分页参数
	// @gotags: json:"page"
	Page *request.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"`
	// contains filtered or unexported fields
}

func (*QueryApprovalRequest) Descriptor deprecated

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

Deprecated: Use QueryApprovalRequest.ProtoReflect.Descriptor instead.

func (*QueryApprovalRequest) GetPage

func (*QueryApprovalRequest) ProtoMessage

func (*QueryApprovalRequest) ProtoMessage()

func (*QueryApprovalRequest) ProtoReflect

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

func (*QueryApprovalRequest) Reset

func (x *QueryApprovalRequest) Reset()

func (*QueryApprovalRequest) String

func (x *QueryApprovalRequest) String() string

type ServiceClient

type ServiceClient interface {
	CreateApproval(ctx context.Context, in *CreateApprovalRequest, opts ...grpc.CallOption) (*Approval, error)
	QueryApproval(ctx context.Context, in *QueryApprovalRequest, opts ...grpc.CallOption) (*ApprovalSet, error)
	DescribeApproval(ctx context.Context, in *DescribeApprovalRequest, opts ...grpc.CallOption) (*Approval, error)
	UpdateApproval(ctx context.Context, in *UpdateApprovalRequest, opts ...grpc.CallOption) (*Approval, error)
	DeleteApproval(ctx context.Context, in *DeleteApprovalRequest, opts ...grpc.CallOption) (*Approval, error)
}

ServiceClient is the client API for Service 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 NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	CreateApproval(context.Context, *CreateApprovalRequest) (*Approval, error)
	QueryApproval(context.Context, *QueryApprovalRequest) (*ApprovalSet, error)
	DescribeApproval(context.Context, *DescribeApprovalRequest) (*Approval, error)
	UpdateApproval(context.Context, *UpdateApprovalRequest) (*Approval, error)
	DeleteApproval(context.Context, *DeleteApprovalRequest) (*Approval, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) CreateApproval

func (UnimplementedServiceServer) DeleteApproval

func (UnimplementedServiceServer) DescribeApproval

func (UnimplementedServiceServer) QueryApproval

func (UnimplementedServiceServer) UpdateApproval

type UnsafeServiceServer

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

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

type UpdateApprovalRequest

type UpdateApprovalRequest struct {

	// 更新模式
	// @gotags: json:"update_mode"
	UpdateMode request1.UpdateMode `protobuf:"varint,1,opt,name=update_mode,json=updateMode,proto3,enum=infraboard.mcube.request.UpdateMode" json:"update_mode"`
	// contains filtered or unexported fields
}

func (*UpdateApprovalRequest) Descriptor deprecated

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

Deprecated: Use UpdateApprovalRequest.ProtoReflect.Descriptor instead.

func (*UpdateApprovalRequest) GetUpdateMode

func (x *UpdateApprovalRequest) GetUpdateMode() request1.UpdateMode

func (*UpdateApprovalRequest) ProtoMessage

func (*UpdateApprovalRequest) ProtoMessage()

func (*UpdateApprovalRequest) ProtoReflect

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

func (*UpdateApprovalRequest) Reset

func (x *UpdateApprovalRequest) Reset()

func (*UpdateApprovalRequest) String

func (x *UpdateApprovalRequest) String() string

Directories

Path Synopsis
provider

Jump to

Keyboard shortcuts

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