管理端全部功能跑通

This commit is contained in:
robin
2026-02-27 10:35:22 +08:00
parent 4d275c921d
commit 150799f41d
263 changed files with 22664 additions and 4053 deletions

View File

@@ -0,0 +1,233 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v3.21.12
// source: service_httpdns_domain.proto
package pb
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const (
HTTPDNSDomainService_CreateHTTPDNSDomain_FullMethodName = "/pb.HTTPDNSDomainService/createHTTPDNSDomain"
HTTPDNSDomainService_DeleteHTTPDNSDomain_FullMethodName = "/pb.HTTPDNSDomainService/deleteHTTPDNSDomain"
HTTPDNSDomainService_UpdateHTTPDNSDomainStatus_FullMethodName = "/pb.HTTPDNSDomainService/updateHTTPDNSDomainStatus"
HTTPDNSDomainService_ListHTTPDNSDomainsWithAppId_FullMethodName = "/pb.HTTPDNSDomainService/listHTTPDNSDomainsWithAppId"
)
// HTTPDNSDomainServiceClient is the client API for HTTPDNSDomainService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type HTTPDNSDomainServiceClient interface {
CreateHTTPDNSDomain(ctx context.Context, in *CreateHTTPDNSDomainRequest, opts ...grpc.CallOption) (*CreateHTTPDNSDomainResponse, error)
DeleteHTTPDNSDomain(ctx context.Context, in *DeleteHTTPDNSDomainRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
UpdateHTTPDNSDomainStatus(ctx context.Context, in *UpdateHTTPDNSDomainStatusRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
ListHTTPDNSDomainsWithAppId(ctx context.Context, in *ListHTTPDNSDomainsWithAppIdRequest, opts ...grpc.CallOption) (*ListHTTPDNSDomainsWithAppIdResponse, error)
}
type hTTPDNSDomainServiceClient struct {
cc grpc.ClientConnInterface
}
func NewHTTPDNSDomainServiceClient(cc grpc.ClientConnInterface) HTTPDNSDomainServiceClient {
return &hTTPDNSDomainServiceClient{cc}
}
func (c *hTTPDNSDomainServiceClient) CreateHTTPDNSDomain(ctx context.Context, in *CreateHTTPDNSDomainRequest, opts ...grpc.CallOption) (*CreateHTTPDNSDomainResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(CreateHTTPDNSDomainResponse)
err := c.cc.Invoke(ctx, HTTPDNSDomainService_CreateHTTPDNSDomain_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *hTTPDNSDomainServiceClient) DeleteHTTPDNSDomain(ctx context.Context, in *DeleteHTTPDNSDomainRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, HTTPDNSDomainService_DeleteHTTPDNSDomain_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *hTTPDNSDomainServiceClient) UpdateHTTPDNSDomainStatus(ctx context.Context, in *UpdateHTTPDNSDomainStatusRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, HTTPDNSDomainService_UpdateHTTPDNSDomainStatus_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *hTTPDNSDomainServiceClient) ListHTTPDNSDomainsWithAppId(ctx context.Context, in *ListHTTPDNSDomainsWithAppIdRequest, opts ...grpc.CallOption) (*ListHTTPDNSDomainsWithAppIdResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ListHTTPDNSDomainsWithAppIdResponse)
err := c.cc.Invoke(ctx, HTTPDNSDomainService_ListHTTPDNSDomainsWithAppId_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// HTTPDNSDomainServiceServer is the server API for HTTPDNSDomainService service.
// All implementations should embed UnimplementedHTTPDNSDomainServiceServer
// for forward compatibility.
type HTTPDNSDomainServiceServer interface {
CreateHTTPDNSDomain(context.Context, *CreateHTTPDNSDomainRequest) (*CreateHTTPDNSDomainResponse, error)
DeleteHTTPDNSDomain(context.Context, *DeleteHTTPDNSDomainRequest) (*RPCSuccess, error)
UpdateHTTPDNSDomainStatus(context.Context, *UpdateHTTPDNSDomainStatusRequest) (*RPCSuccess, error)
ListHTTPDNSDomainsWithAppId(context.Context, *ListHTTPDNSDomainsWithAppIdRequest) (*ListHTTPDNSDomainsWithAppIdResponse, error)
}
// UnimplementedHTTPDNSDomainServiceServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedHTTPDNSDomainServiceServer struct{}
func (UnimplementedHTTPDNSDomainServiceServer) CreateHTTPDNSDomain(context.Context, *CreateHTTPDNSDomainRequest) (*CreateHTTPDNSDomainResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateHTTPDNSDomain not implemented")
}
func (UnimplementedHTTPDNSDomainServiceServer) DeleteHTTPDNSDomain(context.Context, *DeleteHTTPDNSDomainRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteHTTPDNSDomain not implemented")
}
func (UnimplementedHTTPDNSDomainServiceServer) UpdateHTTPDNSDomainStatus(context.Context, *UpdateHTTPDNSDomainStatusRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPDNSDomainStatus not implemented")
}
func (UnimplementedHTTPDNSDomainServiceServer) ListHTTPDNSDomainsWithAppId(context.Context, *ListHTTPDNSDomainsWithAppIdRequest) (*ListHTTPDNSDomainsWithAppIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListHTTPDNSDomainsWithAppId not implemented")
}
func (UnimplementedHTTPDNSDomainServiceServer) testEmbeddedByValue() {}
// UnsafeHTTPDNSDomainServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to HTTPDNSDomainServiceServer will
// result in compilation errors.
type UnsafeHTTPDNSDomainServiceServer interface {
mustEmbedUnimplementedHTTPDNSDomainServiceServer()
}
func RegisterHTTPDNSDomainServiceServer(s grpc.ServiceRegistrar, srv HTTPDNSDomainServiceServer) {
// If the following call pancis, it indicates UnimplementedHTTPDNSDomainServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
t.testEmbeddedByValue()
}
s.RegisterService(&HTTPDNSDomainService_ServiceDesc, srv)
}
func _HTTPDNSDomainService_CreateHTTPDNSDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateHTTPDNSDomainRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPDNSDomainServiceServer).CreateHTTPDNSDomain(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: HTTPDNSDomainService_CreateHTTPDNSDomain_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPDNSDomainServiceServer).CreateHTTPDNSDomain(ctx, req.(*CreateHTTPDNSDomainRequest))
}
return interceptor(ctx, in, info, handler)
}
func _HTTPDNSDomainService_DeleteHTTPDNSDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteHTTPDNSDomainRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPDNSDomainServiceServer).DeleteHTTPDNSDomain(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: HTTPDNSDomainService_DeleteHTTPDNSDomain_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPDNSDomainServiceServer).DeleteHTTPDNSDomain(ctx, req.(*DeleteHTTPDNSDomainRequest))
}
return interceptor(ctx, in, info, handler)
}
func _HTTPDNSDomainService_UpdateHTTPDNSDomainStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateHTTPDNSDomainStatusRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPDNSDomainServiceServer).UpdateHTTPDNSDomainStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: HTTPDNSDomainService_UpdateHTTPDNSDomainStatus_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPDNSDomainServiceServer).UpdateHTTPDNSDomainStatus(ctx, req.(*UpdateHTTPDNSDomainStatusRequest))
}
return interceptor(ctx, in, info, handler)
}
func _HTTPDNSDomainService_ListHTTPDNSDomainsWithAppId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListHTTPDNSDomainsWithAppIdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPDNSDomainServiceServer).ListHTTPDNSDomainsWithAppId(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: HTTPDNSDomainService_ListHTTPDNSDomainsWithAppId_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPDNSDomainServiceServer).ListHTTPDNSDomainsWithAppId(ctx, req.(*ListHTTPDNSDomainsWithAppIdRequest))
}
return interceptor(ctx, in, info, handler)
}
// HTTPDNSDomainService_ServiceDesc is the grpc.ServiceDesc for HTTPDNSDomainService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var HTTPDNSDomainService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "pb.HTTPDNSDomainService",
HandlerType: (*HTTPDNSDomainServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "createHTTPDNSDomain",
Handler: _HTTPDNSDomainService_CreateHTTPDNSDomain_Handler,
},
{
MethodName: "deleteHTTPDNSDomain",
Handler: _HTTPDNSDomainService_DeleteHTTPDNSDomain_Handler,
},
{
MethodName: "updateHTTPDNSDomainStatus",
Handler: _HTTPDNSDomainService_UpdateHTTPDNSDomainStatus_Handler,
},
{
MethodName: "listHTTPDNSDomainsWithAppId",
Handler: _HTTPDNSDomainService_ListHTTPDNSDomainsWithAppId_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_httpdns_domain.proto",
}