Parcourir la source

perf: user 表结构调整

BaiLuoYan il y a 3 mois
Parent
commit
d9ef4e68af
3 fichiers modifiés avec 51 ajouts et 62 suppressions
  1. 11 12
      pb/gorpc.proto
  2. 29 38
      pb/pb/gorpc.pb.go
  3. 11 12
      pb/vpn.proto

+ 11 - 12
pb/gorpc.proto

@@ -2920,18 +2920,17 @@ message VpnConfigTemplatePlanDetailVo {
   int64 planId = 2;        // 配置模板主表id
   string core = 3;         // 内核
   string name = 4;         // 名称
-  string envs = 5;         // 环境变量
-  string serverConfig = 6; // 服务端配置
-  string clientConfig = 7; // 客户端配置
-  string policyConfig = 8; // 策略配置
-  int64 sort = 9;          // 排序
-  Status status = 10;      // 状态
-  string remark = 11;      // 备注
-  int64 createTime = 12;   // 创建时间
-  int64 createAt = 13;     // 创建者Id
-  int64 updateTime = 14;   // 更新时间
-  int64 updateAt = 15;     // 更新者Id
-  string version = 16;     // 数据版本
+  string serverConfig = 5; // 服务端配置
+  string clientConfig = 6; // 客户端配置
+  string policyConfig = 7; // 策略配置
+  int64 sort = 8;          // 排序
+  Status status = 9;       // 状态
+  string remark = 10;      // 备注
+  int64 createTime = 11;   // 创建时间
+  int64 createAt = 12;     // 创建者Id
+  int64 updateTime = 13;   // 更新时间
+  int64 updateAt = 14;     // 更新者Id
+  string version = 15;     // 数据版本
 }
 
 message VpnConfigTemplatePlanAddReq {

+ 29 - 38
pb/pb/gorpc.pb.go

@@ -25873,22 +25873,21 @@ func (x *VpnConfigTemplatePlanVo) GetVersion() string {
 // VpnConfigTemplatePlanDetailVo
 type VpnConfigTemplatePlanDetailVo struct {
 	state         protoimpl.MessageState `protogen:"open.v1"`
-	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                            // id
-	PlanId        int64                  `protobuf:"varint,2,opt,name=planId,proto3" json:"planId,omitempty"`                    // 配置模板主表id
-	Core          string                 `protobuf:"bytes,3,opt,name=core,proto3" json:"core,omitempty"`                         // 内核
-	Name          string                 `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`                         // 名称
-	Envs          string                 `protobuf:"bytes,5,opt,name=envs,proto3" json:"envs,omitempty"`                         // 环境变量
-	ServerConfig  string                 `protobuf:"bytes,6,opt,name=serverConfig,proto3" json:"serverConfig,omitempty"`         // 服务端配置
-	ClientConfig  string                 `protobuf:"bytes,7,opt,name=clientConfig,proto3" json:"clientConfig,omitempty"`         // 客户端配置
-	PolicyConfig  string                 `protobuf:"bytes,8,opt,name=policyConfig,proto3" json:"policyConfig,omitempty"`         // 策略配置
-	Sort          int64                  `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"`                        // 排序
-	Status        Status                 `protobuf:"varint,10,opt,name=status,proto3,enum=gorpc.Status" json:"status,omitempty"` // 状态
-	Remark        string                 `protobuf:"bytes,11,opt,name=remark,proto3" json:"remark,omitempty"`                    // 备注
-	CreateTime    int64                  `protobuf:"varint,12,opt,name=createTime,proto3" json:"createTime,omitempty"`           // 创建时间
-	CreateAt      int64                  `protobuf:"varint,13,opt,name=createAt,proto3" json:"createAt,omitempty"`               // 创建者Id
-	UpdateTime    int64                  `protobuf:"varint,14,opt,name=updateTime,proto3" json:"updateTime,omitempty"`           // 更新时间
-	UpdateAt      int64                  `protobuf:"varint,15,opt,name=updateAt,proto3" json:"updateAt,omitempty"`               // 更新者Id
-	Version       string                 `protobuf:"bytes,16,opt,name=version,proto3" json:"version,omitempty"`                  // 数据版本
+	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                           // id
+	PlanId        int64                  `protobuf:"varint,2,opt,name=planId,proto3" json:"planId,omitempty"`                   // 配置模板主表id
+	Core          string                 `protobuf:"bytes,3,opt,name=core,proto3" json:"core,omitempty"`                        // 内核
+	Name          string                 `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`                        // 名称
+	ServerConfig  string                 `protobuf:"bytes,5,opt,name=serverConfig,proto3" json:"serverConfig,omitempty"`        // 服务端配置
+	ClientConfig  string                 `protobuf:"bytes,6,opt,name=clientConfig,proto3" json:"clientConfig,omitempty"`        // 客户端配置
+	PolicyConfig  string                 `protobuf:"bytes,7,opt,name=policyConfig,proto3" json:"policyConfig,omitempty"`        // 策略配置
+	Sort          int64                  `protobuf:"varint,8,opt,name=sort,proto3" json:"sort,omitempty"`                       // 排序
+	Status        Status                 `protobuf:"varint,9,opt,name=status,proto3,enum=gorpc.Status" json:"status,omitempty"` // 状态
+	Remark        string                 `protobuf:"bytes,10,opt,name=remark,proto3" json:"remark,omitempty"`                   // 备注
+	CreateTime    int64                  `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime,omitempty"`          // 创建时间
+	CreateAt      int64                  `protobuf:"varint,12,opt,name=createAt,proto3" json:"createAt,omitempty"`              // 创建者Id
+	UpdateTime    int64                  `protobuf:"varint,13,opt,name=updateTime,proto3" json:"updateTime,omitempty"`          // 更新时间
+	UpdateAt      int64                  `protobuf:"varint,14,opt,name=updateAt,proto3" json:"updateAt,omitempty"`              // 更新者Id
+	Version       string                 `protobuf:"bytes,15,opt,name=version,proto3" json:"version,omitempty"`                 // 数据版本
 	unknownFields protoimpl.UnknownFields
 	sizeCache     protoimpl.SizeCache
 }
@@ -25951,13 +25950,6 @@ func (x *VpnConfigTemplatePlanDetailVo) GetName() string {
 	return ""
 }
 
-func (x *VpnConfigTemplatePlanDetailVo) GetEnvs() string {
-	if x != nil {
-		return x.Envs
-	}
-	return ""
-}
-
 func (x *VpnConfigTemplatePlanDetailVo) GetServerConfig() string {
 	if x != nil {
 		return x.ServerConfig
@@ -29294,29 +29286,28 @@ const file_gorpc_proto_rawDesc = "" +
 	" \x01(\x03R\n" +
 	"updateTime\x12\x1a\n" +
 	"\bupdateAt\x18\v \x01(\x03R\bupdateAt\x12\x18\n" +
-	"\aversion\x18\f \x01(\tR\aversion\"\xd4\x03\n" +
+	"\aversion\x18\f \x01(\tR\aversion\"\xc0\x03\n" +
 	"\x1dVpnConfigTemplatePlanDetailVo\x12\x0e\n" +
 	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
 	"\x06planId\x18\x02 \x01(\x03R\x06planId\x12\x12\n" +
 	"\x04core\x18\x03 \x01(\tR\x04core\x12\x12\n" +
-	"\x04name\x18\x04 \x01(\tR\x04name\x12\x12\n" +
-	"\x04envs\x18\x05 \x01(\tR\x04envs\x12\"\n" +
-	"\fserverConfig\x18\x06 \x01(\tR\fserverConfig\x12\"\n" +
-	"\fclientConfig\x18\a \x01(\tR\fclientConfig\x12\"\n" +
-	"\fpolicyConfig\x18\b \x01(\tR\fpolicyConfig\x12\x12\n" +
-	"\x04sort\x18\t \x01(\x03R\x04sort\x12%\n" +
-	"\x06status\x18\n" +
-	" \x01(\x0e2\r.gorpc.StatusR\x06status\x12\x16\n" +
-	"\x06remark\x18\v \x01(\tR\x06remark\x12\x1e\n" +
+	"\x04name\x18\x04 \x01(\tR\x04name\x12\"\n" +
+	"\fserverConfig\x18\x05 \x01(\tR\fserverConfig\x12\"\n" +
+	"\fclientConfig\x18\x06 \x01(\tR\fclientConfig\x12\"\n" +
+	"\fpolicyConfig\x18\a \x01(\tR\fpolicyConfig\x12\x12\n" +
+	"\x04sort\x18\b \x01(\x03R\x04sort\x12%\n" +
+	"\x06status\x18\t \x01(\x0e2\r.gorpc.StatusR\x06status\x12\x16\n" +
+	"\x06remark\x18\n" +
+	" \x01(\tR\x06remark\x12\x1e\n" +
 	"\n" +
-	"createTime\x18\f \x01(\x03R\n" +
+	"createTime\x18\v \x01(\x03R\n" +
 	"createTime\x12\x1a\n" +
-	"\bcreateAt\x18\r \x01(\x03R\bcreateAt\x12\x1e\n" +
+	"\bcreateAt\x18\f \x01(\x03R\bcreateAt\x12\x1e\n" +
 	"\n" +
-	"updateTime\x18\x0e \x01(\x03R\n" +
+	"updateTime\x18\r \x01(\x03R\n" +
 	"updateTime\x12\x1a\n" +
-	"\bupdateAt\x18\x0f \x01(\x03R\bupdateAt\x12\x18\n" +
-	"\aversion\x18\x10 \x01(\tR\aversion\"\x91\x01\n" +
+	"\bupdateAt\x18\x0e \x01(\x03R\bupdateAt\x12\x18\n" +
+	"\aversion\x18\x0f \x01(\tR\aversion\"\x91\x01\n" +
 	"\x1bVpnConfigTemplatePlanAddReq\x122\n" +
 	"\x04plan\x18\x01 \x01(\v2\x1e.gorpc.VpnConfigTemplatePlanVoR\x04plan\x12>\n" +
 	"\adetails\x18\x02 \x03(\v2$.gorpc.VpnConfigTemplatePlanDetailVoR\adetails\"\x92\x01\n" +

+ 11 - 12
pb/vpn.proto

@@ -531,18 +531,17 @@ message VpnConfigTemplatePlanDetailVo {
   int64 planId = 2;        // 配置模板主表id
   string core = 3;         // 内核
   string name = 4;         // 名称
-  string envs = 5;         // 环境变量
-  string serverConfig = 6; // 服务端配置
-  string clientConfig = 7; // 客户端配置
-  string policyConfig = 8; // 策略配置
-  int64 sort = 9;          // 排序
-  Status status = 10;      // 状态
-  string remark = 11;      // 备注
-  int64 createTime = 12;   // 创建时间
-  int64 createAt = 13;     // 创建者Id
-  int64 updateTime = 14;   // 更新时间
-  int64 updateAt = 15;     // 更新者Id
-  string version = 16;     // 数据版本
+  string serverConfig = 5; // 服务端配置
+  string clientConfig = 6; // 客户端配置
+  string policyConfig = 7; // 策略配置
+  int64 sort = 8;          // 排序
+  Status status = 9;       // 状态
+  string remark = 10;      // 备注
+  int64 createTime = 11;   // 创建时间
+  int64 createAt = 12;     // 创建者Id
+  int64 updateTime = 13;   // 更新时间
+  int64 updateAt = 14;     // 更新者Id
+  string version = 15;     // 数据版本
 }
 
 message VpnConfigTemplatePlanAddReq {