Explorar el Código

feat: 移除 vpnserver_port 相关接口

BaiLuoYan hace 2 meses
padre
commit
f1e7a8fac7

+ 0 - 12
pb/client/gogameclient/go_game_client.go

@@ -447,18 +447,6 @@ type (
 	VpnServerLocationListReq                             = pb.VpnServerLocationListReq
 	VpnServerLocationListResp                            = pb.VpnServerLocationListResp
 	VpnServerLocationVo                                  = pb.VpnServerLocationVo
-	VpnServerPortAddReq                                  = pb.VpnServerPortAddReq
-	VpnServerPortAddResp                                 = pb.VpnServerPortAddResp
-	VpnServerPortBatchAddReq                             = pb.VpnServerPortBatchAddReq
-	VpnServerPortBatchAddResp                            = pb.VpnServerPortBatchAddResp
-	VpnServerPortDelReq                                  = pb.VpnServerPortDelReq
-	VpnServerPortGetReq                                  = pb.VpnServerPortGetReq
-	VpnServerPortGetResp                                 = pb.VpnServerPortGetResp
-	VpnServerPortListReq                                 = pb.VpnServerPortListReq
-	VpnServerPortListResp                                = pb.VpnServerPortListResp
-	VpnServerPortUpdateReq                               = pb.VpnServerPortUpdateReq
-	VpnServerPortUpdateResp                              = pb.VpnServerPortUpdateResp
-	VpnServerPortVo                                      = pb.VpnServerPortVo
 	VpnServerVo                                          = pb.VpnServerVo
 	VpnTagBatchAddReq                                    = pb.VpnTagBatchAddReq
 	VpnTagBatchAddResp                                   = pb.VpnTagBatchAddResp

+ 0 - 12
pb/client/goplanclient/go_plan_client.go

@@ -447,18 +447,6 @@ type (
 	VpnServerLocationListReq                             = pb.VpnServerLocationListReq
 	VpnServerLocationListResp                            = pb.VpnServerLocationListResp
 	VpnServerLocationVo                                  = pb.VpnServerLocationVo
-	VpnServerPortAddReq                                  = pb.VpnServerPortAddReq
-	VpnServerPortAddResp                                 = pb.VpnServerPortAddResp
-	VpnServerPortBatchAddReq                             = pb.VpnServerPortBatchAddReq
-	VpnServerPortBatchAddResp                            = pb.VpnServerPortBatchAddResp
-	VpnServerPortDelReq                                  = pb.VpnServerPortDelReq
-	VpnServerPortGetReq                                  = pb.VpnServerPortGetReq
-	VpnServerPortGetResp                                 = pb.VpnServerPortGetResp
-	VpnServerPortListReq                                 = pb.VpnServerPortListReq
-	VpnServerPortListResp                                = pb.VpnServerPortListResp
-	VpnServerPortUpdateReq                               = pb.VpnServerPortUpdateReq
-	VpnServerPortUpdateResp                              = pb.VpnServerPortUpdateResp
-	VpnServerPortVo                                      = pb.VpnServerPortVo
 	VpnServerVo                                          = pb.VpnServerVo
 	VpnTagBatchAddReq                                    = pb.VpnTagBatchAddReq
 	VpnTagBatchAddResp                                   = pb.VpnTagBatchAddResp

+ 0 - 12
pb/client/gopmpclient/go_pmp_client.go

@@ -447,18 +447,6 @@ type (
 	VpnServerLocationListReq                             = pb.VpnServerLocationListReq
 	VpnServerLocationListResp                            = pb.VpnServerLocationListResp
 	VpnServerLocationVo                                  = pb.VpnServerLocationVo
-	VpnServerPortAddReq                                  = pb.VpnServerPortAddReq
-	VpnServerPortAddResp                                 = pb.VpnServerPortAddResp
-	VpnServerPortBatchAddReq                             = pb.VpnServerPortBatchAddReq
-	VpnServerPortBatchAddResp                            = pb.VpnServerPortBatchAddResp
-	VpnServerPortDelReq                                  = pb.VpnServerPortDelReq
-	VpnServerPortGetReq                                  = pb.VpnServerPortGetReq
-	VpnServerPortGetResp                                 = pb.VpnServerPortGetResp
-	VpnServerPortListReq                                 = pb.VpnServerPortListReq
-	VpnServerPortListResp                                = pb.VpnServerPortListResp
-	VpnServerPortUpdateReq                               = pb.VpnServerPortUpdateReq
-	VpnServerPortUpdateResp                              = pb.VpnServerPortUpdateResp
-	VpnServerPortVo                                      = pb.VpnServerPortVo
 	VpnServerVo                                          = pb.VpnServerVo
 	VpnTagBatchAddReq                                    = pb.VpnTagBatchAddReq
 	VpnTagBatchAddResp                                   = pb.VpnTagBatchAddResp

+ 0 - 12
pb/client/goshortdramaclient/go_short_drama_client.go

@@ -447,18 +447,6 @@ type (
 	VpnServerLocationListReq                             = pb.VpnServerLocationListReq
 	VpnServerLocationListResp                            = pb.VpnServerLocationListResp
 	VpnServerLocationVo                                  = pb.VpnServerLocationVo
-	VpnServerPortAddReq                                  = pb.VpnServerPortAddReq
-	VpnServerPortAddResp                                 = pb.VpnServerPortAddResp
-	VpnServerPortBatchAddReq                             = pb.VpnServerPortBatchAddReq
-	VpnServerPortBatchAddResp                            = pb.VpnServerPortBatchAddResp
-	VpnServerPortDelReq                                  = pb.VpnServerPortDelReq
-	VpnServerPortGetReq                                  = pb.VpnServerPortGetReq
-	VpnServerPortGetResp                                 = pb.VpnServerPortGetResp
-	VpnServerPortListReq                                 = pb.VpnServerPortListReq
-	VpnServerPortListResp                                = pb.VpnServerPortListResp
-	VpnServerPortUpdateReq                               = pb.VpnServerPortUpdateReq
-	VpnServerPortUpdateResp                              = pb.VpnServerPortUpdateResp
-	VpnServerPortVo                                      = pb.VpnServerPortVo
 	VpnServerVo                                          = pb.VpnServerVo
 	VpnTagBatchAddReq                                    = pb.VpnTagBatchAddReq
 	VpnTagBatchAddResp                                   = pb.VpnTagBatchAddResp

+ 0 - 12
pb/client/gosysclient/go_sys_client.go

@@ -447,18 +447,6 @@ type (
 	VpnServerLocationListReq                             = pb.VpnServerLocationListReq
 	VpnServerLocationListResp                            = pb.VpnServerLocationListResp
 	VpnServerLocationVo                                  = pb.VpnServerLocationVo
-	VpnServerPortAddReq                                  = pb.VpnServerPortAddReq
-	VpnServerPortAddResp                                 = pb.VpnServerPortAddResp
-	VpnServerPortBatchAddReq                             = pb.VpnServerPortBatchAddReq
-	VpnServerPortBatchAddResp                            = pb.VpnServerPortBatchAddResp
-	VpnServerPortDelReq                                  = pb.VpnServerPortDelReq
-	VpnServerPortGetReq                                  = pb.VpnServerPortGetReq
-	VpnServerPortGetResp                                 = pb.VpnServerPortGetResp
-	VpnServerPortListReq                                 = pb.VpnServerPortListReq
-	VpnServerPortListResp                                = pb.VpnServerPortListResp
-	VpnServerPortUpdateReq                               = pb.VpnServerPortUpdateReq
-	VpnServerPortUpdateResp                              = pb.VpnServerPortUpdateResp
-	VpnServerPortVo                                      = pb.VpnServerPortVo
 	VpnServerVo                                          = pb.VpnServerVo
 	VpnTagBatchAddReq                                    = pb.VpnTagBatchAddReq
 	VpnTagBatchAddResp                                   = pb.VpnTagBatchAddResp

+ 0 - 12
pb/client/gouserclient/go_user_client.go

@@ -447,18 +447,6 @@ type (
 	VpnServerLocationListReq                             = pb.VpnServerLocationListReq
 	VpnServerLocationListResp                            = pb.VpnServerLocationListResp
 	VpnServerLocationVo                                  = pb.VpnServerLocationVo
-	VpnServerPortAddReq                                  = pb.VpnServerPortAddReq
-	VpnServerPortAddResp                                 = pb.VpnServerPortAddResp
-	VpnServerPortBatchAddReq                             = pb.VpnServerPortBatchAddReq
-	VpnServerPortBatchAddResp                            = pb.VpnServerPortBatchAddResp
-	VpnServerPortDelReq                                  = pb.VpnServerPortDelReq
-	VpnServerPortGetReq                                  = pb.VpnServerPortGetReq
-	VpnServerPortGetResp                                 = pb.VpnServerPortGetResp
-	VpnServerPortListReq                                 = pb.VpnServerPortListReq
-	VpnServerPortListResp                                = pb.VpnServerPortListResp
-	VpnServerPortUpdateReq                               = pb.VpnServerPortUpdateReq
-	VpnServerPortUpdateResp                              = pb.VpnServerPortUpdateResp
-	VpnServerPortVo                                      = pb.VpnServerPortVo
 	VpnServerVo                                          = pb.VpnServerVo
 	VpnTagBatchAddReq                                    = pb.VpnTagBatchAddReq
 	VpnTagBatchAddResp                                   = pb.VpnTagBatchAddResp

+ 0 - 50
pb/client/govpnclient/go_vpn_client.go

@@ -447,18 +447,6 @@ type (
 	VpnServerLocationListReq                             = pb.VpnServerLocationListReq
 	VpnServerLocationListResp                            = pb.VpnServerLocationListResp
 	VpnServerLocationVo                                  = pb.VpnServerLocationVo
-	VpnServerPortAddReq                                  = pb.VpnServerPortAddReq
-	VpnServerPortAddResp                                 = pb.VpnServerPortAddResp
-	VpnServerPortBatchAddReq                             = pb.VpnServerPortBatchAddReq
-	VpnServerPortBatchAddResp                            = pb.VpnServerPortBatchAddResp
-	VpnServerPortDelReq                                  = pb.VpnServerPortDelReq
-	VpnServerPortGetReq                                  = pb.VpnServerPortGetReq
-	VpnServerPortGetResp                                 = pb.VpnServerPortGetResp
-	VpnServerPortListReq                                 = pb.VpnServerPortListReq
-	VpnServerPortListResp                                = pb.VpnServerPortListResp
-	VpnServerPortUpdateReq                               = pb.VpnServerPortUpdateReq
-	VpnServerPortUpdateResp                              = pb.VpnServerPortUpdateResp
-	VpnServerPortVo                                      = pb.VpnServerPortVo
 	VpnServerVo                                          = pb.VpnServerVo
 	VpnTagBatchAddReq                                    = pb.VpnTagBatchAddReq
 	VpnTagBatchAddResp                                   = pb.VpnTagBatchAddResp
@@ -665,13 +653,6 @@ type (
 		VpnConfigTemplatePlanDetailDel(ctx context.Context, in *VpnConfigTemplatePlanDetailDelReq, opts ...grpc.CallOption) (*Empty, error)
 		VpnConfigTemplatePlanDetailGet(ctx context.Context, in *VpnConfigTemplatePlanDetailGetReq, opts ...grpc.CallOption) (*VpnConfigTemplatePlanDetailGetResp, error)
 		VpnConfigTemplatePlanDetailList(ctx context.Context, in *VpnConfigTemplatePlanDetailListReq, opts ...grpc.CallOption) (*VpnConfigTemplatePlanDetailListResp, error)
-		// VpnServerPortAdd
-		VpnServerPortAdd(ctx context.Context, in *VpnServerPortAddReq, opts ...grpc.CallOption) (*VpnServerPortAddResp, error)
-		VpnServerPortUpdate(ctx context.Context, in *VpnServerPortUpdateReq, opts ...grpc.CallOption) (*VpnServerPortUpdateResp, error)
-		VpnServerPortDel(ctx context.Context, in *VpnServerPortDelReq, opts ...grpc.CallOption) (*Empty, error)
-		VpnServerPortGet(ctx context.Context, in *VpnServerPortGetReq, opts ...grpc.CallOption) (*VpnServerPortGetResp, error)
-		VpnServerPortList(ctx context.Context, in *VpnServerPortListReq, opts ...grpc.CallOption) (*VpnServerPortListResp, error)
-		VpnServerPortBatchAdd(ctx context.Context, in *VpnServerPortBatchAddReq, opts ...grpc.CallOption) (*VpnServerPortBatchAddResp, error)
 	}
 
 	defaultGoVpnClient struct {
@@ -1190,34 +1171,3 @@ func (m *defaultGoVpnClient) VpnConfigTemplatePlanDetailList(ctx context.Context
 	client := pb.NewGoVpnClientClient(m.cli.Conn())
 	return client.VpnConfigTemplatePlanDetailList(ctx, in, opts...)
 }
-
-// VpnServerPortAdd
-func (m *defaultGoVpnClient) VpnServerPortAdd(ctx context.Context, in *VpnServerPortAddReq, opts ...grpc.CallOption) (*VpnServerPortAddResp, error) {
-	client := pb.NewGoVpnClientClient(m.cli.Conn())
-	return client.VpnServerPortAdd(ctx, in, opts...)
-}
-
-func (m *defaultGoVpnClient) VpnServerPortUpdate(ctx context.Context, in *VpnServerPortUpdateReq, opts ...grpc.CallOption) (*VpnServerPortUpdateResp, error) {
-	client := pb.NewGoVpnClientClient(m.cli.Conn())
-	return client.VpnServerPortUpdate(ctx, in, opts...)
-}
-
-func (m *defaultGoVpnClient) VpnServerPortDel(ctx context.Context, in *VpnServerPortDelReq, opts ...grpc.CallOption) (*Empty, error) {
-	client := pb.NewGoVpnClientClient(m.cli.Conn())
-	return client.VpnServerPortDel(ctx, in, opts...)
-}
-
-func (m *defaultGoVpnClient) VpnServerPortGet(ctx context.Context, in *VpnServerPortGetReq, opts ...grpc.CallOption) (*VpnServerPortGetResp, error) {
-	client := pb.NewGoVpnClientClient(m.cli.Conn())
-	return client.VpnServerPortGet(ctx, in, opts...)
-}
-
-func (m *defaultGoVpnClient) VpnServerPortList(ctx context.Context, in *VpnServerPortListReq, opts ...grpc.CallOption) (*VpnServerPortListResp, error) {
-	client := pb.NewGoVpnClientClient(m.cli.Conn())
-	return client.VpnServerPortList(ctx, in, opts...)
-}
-
-func (m *defaultGoVpnClient) VpnServerPortBatchAdd(ctx context.Context, in *VpnServerPortBatchAddReq, opts ...grpc.CallOption) (*VpnServerPortBatchAddResp, error) {
-	client := pb.NewGoVpnClientClient(m.cli.Conn())
-	return client.VpnServerPortBatchAdd(ctx, in, opts...)
-}

+ 0 - 52
pb/gorpc.proto

@@ -3518,49 +3518,6 @@ message VpnConfigTemplatePlanDetailListResp {
   repeated VpnConfigTemplatePlanDetailVo list = 2;
 }
 
-message VpnServerPortVo {
-  int64 id = 1;
-  int64 srcServerId = 2;
-  uint32 srcPort = 3;
-  int64 dstServerId = 4;
-  int64 createTime = 5;
-  int64 createAt = 6;
-  int64 updateTime = 7;
-  int64 updateAt = 8;
-}
-
-message VpnServerPortGetReq { VpnServerPortVo vo = 1; }
-message VpnServerPortGetResp { VpnServerPortVo vo = 1; }
-
-message VpnServerPortAddReq { VpnServerPortVo vo = 1; }
-message VpnServerPortAddResp { VpnServerPortVo vo = 1; }
-
-message VpnServerPortUpdateReq { VpnServerPortVo vo = 1; }
-message VpnServerPortUpdateResp { VpnServerPortVo vo = 1; }
-
-message VpnServerPortDelReq { repeated int64 ids = 1; }
-
-message VpnServerPortListReq {
-  Page page = 1;
-  VpnServerPortVo vo = 2;
-  repeated int64 excludeIds = 3;
-  repeated int64 srcServerIds = 4;
-  repeated uint32 srcPorts = 5;
-  repeated int64 dstServerIds = 6;
-}
-message VpnServerPortListResp {
-  int64 total = 1;
-  repeated VpnServerPortVo list = 2;
-}
-
-message VpnServerPortBatchAddReq {
-  repeated VpnServerPortVo list = 1;
-}
-message VpnServerPortBatchAddResp {
-  int64 total = 1;
-  repeated VpnServerPortVo list = 2;
-}
-
 // govpn 模块,VPN相关服务
 service GoVpnClient {
   rpc Ping(Request) returns (Response);
@@ -3709,13 +3666,4 @@ service GoVpnClient {
   rpc VpnConfigTemplatePlanDetailDel(VpnConfigTemplatePlanDetailDelReq) returns (Empty);
   rpc VpnConfigTemplatePlanDetailGet(VpnConfigTemplatePlanDetailGetReq) returns (VpnConfigTemplatePlanDetailGetResp);
   rpc VpnConfigTemplatePlanDetailList(VpnConfigTemplatePlanDetailListReq) returns (VpnConfigTemplatePlanDetailListResp);
-
-  /** VpnServerPort Model */
-  // VpnServerPortAdd
-  rpc VpnServerPortAdd(VpnServerPortAddReq) returns (VpnServerPortAddResp);
-  rpc VpnServerPortUpdate(VpnServerPortUpdateReq) returns (VpnServerPortUpdateResp);
-  rpc VpnServerPortDel(VpnServerPortDelReq) returns (Empty);
-  rpc VpnServerPortGet(VpnServerPortGetReq) returns (VpnServerPortGetResp);
-  rpc VpnServerPortList(VpnServerPortListReq) returns (VpnServerPortListResp);
-  rpc VpnServerPortBatchAdd(VpnServerPortBatchAddReq) returns (VpnServerPortBatchAddResp);
 }

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1425 - 2150
pb/pb/gorpc.pb.go


+ 0 - 230
pb/pb/gorpc_grpc.pb.go

@@ -12760,12 +12760,6 @@ const (
 	GoVpnClient_VpnConfigTemplatePlanDetailDel_FullMethodName    = "/gorpc.GoVpnClient/VpnConfigTemplatePlanDetailDel"
 	GoVpnClient_VpnConfigTemplatePlanDetailGet_FullMethodName    = "/gorpc.GoVpnClient/VpnConfigTemplatePlanDetailGet"
 	GoVpnClient_VpnConfigTemplatePlanDetailList_FullMethodName   = "/gorpc.GoVpnClient/VpnConfigTemplatePlanDetailList"
-	GoVpnClient_VpnServerPortAdd_FullMethodName                  = "/gorpc.GoVpnClient/VpnServerPortAdd"
-	GoVpnClient_VpnServerPortUpdate_FullMethodName               = "/gorpc.GoVpnClient/VpnServerPortUpdate"
-	GoVpnClient_VpnServerPortDel_FullMethodName                  = "/gorpc.GoVpnClient/VpnServerPortDel"
-	GoVpnClient_VpnServerPortGet_FullMethodName                  = "/gorpc.GoVpnClient/VpnServerPortGet"
-	GoVpnClient_VpnServerPortList_FullMethodName                 = "/gorpc.GoVpnClient/VpnServerPortList"
-	GoVpnClient_VpnServerPortBatchAdd_FullMethodName             = "/gorpc.GoVpnClient/VpnServerPortBatchAdd"
 )
 
 // GoVpnClientClient is the client API for GoVpnClient service.
@@ -12892,13 +12886,6 @@ type GoVpnClientClient interface {
 	VpnConfigTemplatePlanDetailDel(ctx context.Context, in *VpnConfigTemplatePlanDetailDelReq, opts ...grpc.CallOption) (*Empty, error)
 	VpnConfigTemplatePlanDetailGet(ctx context.Context, in *VpnConfigTemplatePlanDetailGetReq, opts ...grpc.CallOption) (*VpnConfigTemplatePlanDetailGetResp, error)
 	VpnConfigTemplatePlanDetailList(ctx context.Context, in *VpnConfigTemplatePlanDetailListReq, opts ...grpc.CallOption) (*VpnConfigTemplatePlanDetailListResp, error)
-	// VpnServerPortAdd
-	VpnServerPortAdd(ctx context.Context, in *VpnServerPortAddReq, opts ...grpc.CallOption) (*VpnServerPortAddResp, error)
-	VpnServerPortUpdate(ctx context.Context, in *VpnServerPortUpdateReq, opts ...grpc.CallOption) (*VpnServerPortUpdateResp, error)
-	VpnServerPortDel(ctx context.Context, in *VpnServerPortDelReq, opts ...grpc.CallOption) (*Empty, error)
-	VpnServerPortGet(ctx context.Context, in *VpnServerPortGetReq, opts ...grpc.CallOption) (*VpnServerPortGetResp, error)
-	VpnServerPortList(ctx context.Context, in *VpnServerPortListReq, opts ...grpc.CallOption) (*VpnServerPortListResp, error)
-	VpnServerPortBatchAdd(ctx context.Context, in *VpnServerPortBatchAddReq, opts ...grpc.CallOption) (*VpnServerPortBatchAddResp, error)
 }
 
 type goVpnClientClient struct {
@@ -13879,66 +13866,6 @@ func (c *goVpnClientClient) VpnConfigTemplatePlanDetailList(ctx context.Context,
 	return out, nil
 }
 
-func (c *goVpnClientClient) VpnServerPortAdd(ctx context.Context, in *VpnServerPortAddReq, opts ...grpc.CallOption) (*VpnServerPortAddResp, error) {
-	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
-	out := new(VpnServerPortAddResp)
-	err := c.cc.Invoke(ctx, GoVpnClient_VpnServerPortAdd_FullMethodName, in, out, cOpts...)
-	if err != nil {
-		return nil, err
-	}
-	return out, nil
-}
-
-func (c *goVpnClientClient) VpnServerPortUpdate(ctx context.Context, in *VpnServerPortUpdateReq, opts ...grpc.CallOption) (*VpnServerPortUpdateResp, error) {
-	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
-	out := new(VpnServerPortUpdateResp)
-	err := c.cc.Invoke(ctx, GoVpnClient_VpnServerPortUpdate_FullMethodName, in, out, cOpts...)
-	if err != nil {
-		return nil, err
-	}
-	return out, nil
-}
-
-func (c *goVpnClientClient) VpnServerPortDel(ctx context.Context, in *VpnServerPortDelReq, opts ...grpc.CallOption) (*Empty, error) {
-	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
-	out := new(Empty)
-	err := c.cc.Invoke(ctx, GoVpnClient_VpnServerPortDel_FullMethodName, in, out, cOpts...)
-	if err != nil {
-		return nil, err
-	}
-	return out, nil
-}
-
-func (c *goVpnClientClient) VpnServerPortGet(ctx context.Context, in *VpnServerPortGetReq, opts ...grpc.CallOption) (*VpnServerPortGetResp, error) {
-	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
-	out := new(VpnServerPortGetResp)
-	err := c.cc.Invoke(ctx, GoVpnClient_VpnServerPortGet_FullMethodName, in, out, cOpts...)
-	if err != nil {
-		return nil, err
-	}
-	return out, nil
-}
-
-func (c *goVpnClientClient) VpnServerPortList(ctx context.Context, in *VpnServerPortListReq, opts ...grpc.CallOption) (*VpnServerPortListResp, error) {
-	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
-	out := new(VpnServerPortListResp)
-	err := c.cc.Invoke(ctx, GoVpnClient_VpnServerPortList_FullMethodName, in, out, cOpts...)
-	if err != nil {
-		return nil, err
-	}
-	return out, nil
-}
-
-func (c *goVpnClientClient) VpnServerPortBatchAdd(ctx context.Context, in *VpnServerPortBatchAddReq, opts ...grpc.CallOption) (*VpnServerPortBatchAddResp, error) {
-	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
-	out := new(VpnServerPortBatchAddResp)
-	err := c.cc.Invoke(ctx, GoVpnClient_VpnServerPortBatchAdd_FullMethodName, in, out, cOpts...)
-	if err != nil {
-		return nil, err
-	}
-	return out, nil
-}
-
 // GoVpnClientServer is the server API for GoVpnClient service.
 // All implementations must embed UnimplementedGoVpnClientServer
 // for forward compatibility.
@@ -14063,13 +13990,6 @@ type GoVpnClientServer interface {
 	VpnConfigTemplatePlanDetailDel(context.Context, *VpnConfigTemplatePlanDetailDelReq) (*Empty, error)
 	VpnConfigTemplatePlanDetailGet(context.Context, *VpnConfigTemplatePlanDetailGetReq) (*VpnConfigTemplatePlanDetailGetResp, error)
 	VpnConfigTemplatePlanDetailList(context.Context, *VpnConfigTemplatePlanDetailListReq) (*VpnConfigTemplatePlanDetailListResp, error)
-	// VpnServerPortAdd
-	VpnServerPortAdd(context.Context, *VpnServerPortAddReq) (*VpnServerPortAddResp, error)
-	VpnServerPortUpdate(context.Context, *VpnServerPortUpdateReq) (*VpnServerPortUpdateResp, error)
-	VpnServerPortDel(context.Context, *VpnServerPortDelReq) (*Empty, error)
-	VpnServerPortGet(context.Context, *VpnServerPortGetReq) (*VpnServerPortGetResp, error)
-	VpnServerPortList(context.Context, *VpnServerPortListReq) (*VpnServerPortListResp, error)
-	VpnServerPortBatchAdd(context.Context, *VpnServerPortBatchAddReq) (*VpnServerPortBatchAddResp, error)
 	mustEmbedUnimplementedGoVpnClientServer()
 }
 
@@ -14371,24 +14291,6 @@ func (UnimplementedGoVpnClientServer) VpnConfigTemplatePlanDetailGet(context.Con
 func (UnimplementedGoVpnClientServer) VpnConfigTemplatePlanDetailList(context.Context, *VpnConfigTemplatePlanDetailListReq) (*VpnConfigTemplatePlanDetailListResp, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method VpnConfigTemplatePlanDetailList not implemented")
 }
-func (UnimplementedGoVpnClientServer) VpnServerPortAdd(context.Context, *VpnServerPortAddReq) (*VpnServerPortAddResp, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method VpnServerPortAdd not implemented")
-}
-func (UnimplementedGoVpnClientServer) VpnServerPortUpdate(context.Context, *VpnServerPortUpdateReq) (*VpnServerPortUpdateResp, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method VpnServerPortUpdate not implemented")
-}
-func (UnimplementedGoVpnClientServer) VpnServerPortDel(context.Context, *VpnServerPortDelReq) (*Empty, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method VpnServerPortDel not implemented")
-}
-func (UnimplementedGoVpnClientServer) VpnServerPortGet(context.Context, *VpnServerPortGetReq) (*VpnServerPortGetResp, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method VpnServerPortGet not implemented")
-}
-func (UnimplementedGoVpnClientServer) VpnServerPortList(context.Context, *VpnServerPortListReq) (*VpnServerPortListResp, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method VpnServerPortList not implemented")
-}
-func (UnimplementedGoVpnClientServer) VpnServerPortBatchAdd(context.Context, *VpnServerPortBatchAddReq) (*VpnServerPortBatchAddResp, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method VpnServerPortBatchAdd not implemented")
-}
 func (UnimplementedGoVpnClientServer) mustEmbedUnimplementedGoVpnClientServer() {}
 func (UnimplementedGoVpnClientServer) testEmbeddedByValue()                     {}
 
@@ -16156,114 +16058,6 @@ func _GoVpnClient_VpnConfigTemplatePlanDetailList_Handler(srv interface{}, ctx c
 	return interceptor(ctx, in, info, handler)
 }
 
-func _GoVpnClient_VpnServerPortAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(VpnServerPortAddReq)
-	if err := dec(in); err != nil {
-		return nil, err
-	}
-	if interceptor == nil {
-		return srv.(GoVpnClientServer).VpnServerPortAdd(ctx, in)
-	}
-	info := &grpc.UnaryServerInfo{
-		Server:     srv,
-		FullMethod: GoVpnClient_VpnServerPortAdd_FullMethodName,
-	}
-	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(GoVpnClientServer).VpnServerPortAdd(ctx, req.(*VpnServerPortAddReq))
-	}
-	return interceptor(ctx, in, info, handler)
-}
-
-func _GoVpnClient_VpnServerPortUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(VpnServerPortUpdateReq)
-	if err := dec(in); err != nil {
-		return nil, err
-	}
-	if interceptor == nil {
-		return srv.(GoVpnClientServer).VpnServerPortUpdate(ctx, in)
-	}
-	info := &grpc.UnaryServerInfo{
-		Server:     srv,
-		FullMethod: GoVpnClient_VpnServerPortUpdate_FullMethodName,
-	}
-	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(GoVpnClientServer).VpnServerPortUpdate(ctx, req.(*VpnServerPortUpdateReq))
-	}
-	return interceptor(ctx, in, info, handler)
-}
-
-func _GoVpnClient_VpnServerPortDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(VpnServerPortDelReq)
-	if err := dec(in); err != nil {
-		return nil, err
-	}
-	if interceptor == nil {
-		return srv.(GoVpnClientServer).VpnServerPortDel(ctx, in)
-	}
-	info := &grpc.UnaryServerInfo{
-		Server:     srv,
-		FullMethod: GoVpnClient_VpnServerPortDel_FullMethodName,
-	}
-	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(GoVpnClientServer).VpnServerPortDel(ctx, req.(*VpnServerPortDelReq))
-	}
-	return interceptor(ctx, in, info, handler)
-}
-
-func _GoVpnClient_VpnServerPortGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(VpnServerPortGetReq)
-	if err := dec(in); err != nil {
-		return nil, err
-	}
-	if interceptor == nil {
-		return srv.(GoVpnClientServer).VpnServerPortGet(ctx, in)
-	}
-	info := &grpc.UnaryServerInfo{
-		Server:     srv,
-		FullMethod: GoVpnClient_VpnServerPortGet_FullMethodName,
-	}
-	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(GoVpnClientServer).VpnServerPortGet(ctx, req.(*VpnServerPortGetReq))
-	}
-	return interceptor(ctx, in, info, handler)
-}
-
-func _GoVpnClient_VpnServerPortList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(VpnServerPortListReq)
-	if err := dec(in); err != nil {
-		return nil, err
-	}
-	if interceptor == nil {
-		return srv.(GoVpnClientServer).VpnServerPortList(ctx, in)
-	}
-	info := &grpc.UnaryServerInfo{
-		Server:     srv,
-		FullMethod: GoVpnClient_VpnServerPortList_FullMethodName,
-	}
-	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(GoVpnClientServer).VpnServerPortList(ctx, req.(*VpnServerPortListReq))
-	}
-	return interceptor(ctx, in, info, handler)
-}
-
-func _GoVpnClient_VpnServerPortBatchAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(VpnServerPortBatchAddReq)
-	if err := dec(in); err != nil {
-		return nil, err
-	}
-	if interceptor == nil {
-		return srv.(GoVpnClientServer).VpnServerPortBatchAdd(ctx, in)
-	}
-	info := &grpc.UnaryServerInfo{
-		Server:     srv,
-		FullMethod: GoVpnClient_VpnServerPortBatchAdd_FullMethodName,
-	}
-	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(GoVpnClientServer).VpnServerPortBatchAdd(ctx, req.(*VpnServerPortBatchAddReq))
-	}
-	return interceptor(ctx, in, info, handler)
-}
-
 // GoVpnClient_ServiceDesc is the grpc.ServiceDesc for GoVpnClient service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -16659,30 +16453,6 @@ var GoVpnClient_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "VpnConfigTemplatePlanDetailList",
 			Handler:    _GoVpnClient_VpnConfigTemplatePlanDetailList_Handler,
 		},
-		{
-			MethodName: "VpnServerPortAdd",
-			Handler:    _GoVpnClient_VpnServerPortAdd_Handler,
-		},
-		{
-			MethodName: "VpnServerPortUpdate",
-			Handler:    _GoVpnClient_VpnServerPortUpdate_Handler,
-		},
-		{
-			MethodName: "VpnServerPortDel",
-			Handler:    _GoVpnClient_VpnServerPortDel_Handler,
-		},
-		{
-			MethodName: "VpnServerPortGet",
-			Handler:    _GoVpnClient_VpnServerPortGet_Handler,
-		},
-		{
-			MethodName: "VpnServerPortList",
-			Handler:    _GoVpnClient_VpnServerPortList_Handler,
-		},
-		{
-			MethodName: "VpnServerPortBatchAdd",
-			Handler:    _GoVpnClient_VpnServerPortBatchAdd_Handler,
-		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "gorpc.proto",

+ 0 - 52
pb/vpn.proto

@@ -626,49 +626,6 @@ message VpnConfigTemplatePlanDetailListResp {
   repeated VpnConfigTemplatePlanDetailVo list = 2;
 }
 
-message VpnServerPortVo {
-  int64 id = 1;
-  int64 srcServerId = 2;
-  uint32 srcPort = 3;
-  int64 dstServerId = 4;
-  int64 createTime = 5;
-  int64 createAt = 6;
-  int64 updateTime = 7;
-  int64 updateAt = 8;
-}
-
-message VpnServerPortGetReq { VpnServerPortVo vo = 1; }
-message VpnServerPortGetResp { VpnServerPortVo vo = 1; }
-
-message VpnServerPortAddReq { VpnServerPortVo vo = 1; }
-message VpnServerPortAddResp { VpnServerPortVo vo = 1; }
-
-message VpnServerPortUpdateReq { VpnServerPortVo vo = 1; }
-message VpnServerPortUpdateResp { VpnServerPortVo vo = 1; }
-
-message VpnServerPortDelReq { repeated int64 ids = 1; }
-
-message VpnServerPortListReq {
-  Page page = 1;
-  VpnServerPortVo vo = 2;
-  repeated int64 excludeIds = 3;
-  repeated int64 srcServerIds = 4;
-  repeated uint32 srcPorts = 5;
-  repeated int64 dstServerIds = 6;
-}
-message VpnServerPortListResp {
-  int64 total = 1;
-  repeated VpnServerPortVo list = 2;
-}
-
-message VpnServerPortBatchAddReq {
-  repeated VpnServerPortVo list = 1;
-}
-message VpnServerPortBatchAddResp {
-  int64 total = 1;
-  repeated VpnServerPortVo list = 2;
-}
-
 // govpn 模块,VPN相关服务
 service GoVpnClient {
   rpc Ping(Request) returns (Response);
@@ -817,13 +774,4 @@ service GoVpnClient {
   rpc VpnConfigTemplatePlanDetailDel(VpnConfigTemplatePlanDetailDelReq) returns (Empty);
   rpc VpnConfigTemplatePlanDetailGet(VpnConfigTemplatePlanDetailGetReq) returns (VpnConfigTemplatePlanDetailGetResp);
   rpc VpnConfigTemplatePlanDetailList(VpnConfigTemplatePlanDetailListReq) returns (VpnConfigTemplatePlanDetailListResp);
-
-  /** VpnServerPort Model */
-  // VpnServerPortAdd
-  rpc VpnServerPortAdd(VpnServerPortAddReq) returns (VpnServerPortAddResp);
-  rpc VpnServerPortUpdate(VpnServerPortUpdateReq) returns (VpnServerPortUpdateResp);
-  rpc VpnServerPortDel(VpnServerPortDelReq) returns (Empty);
-  rpc VpnServerPortGet(VpnServerPortGetReq) returns (VpnServerPortGetResp);
-  rpc VpnServerPortList(VpnServerPortListReq) returns (VpnServerPortListResp);
-  rpc VpnServerPortBatchAdd(VpnServerPortBatchAddReq) returns (VpnServerPortBatchAddResp);
 }

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio