Parcourir la source

system: 系统菜单

Yi il y a 1 an
Parent
commit
ce638445ee

+ 36 - 8
backend/operation/system.proto

@@ -5,7 +5,7 @@ option go_package = ".;operationPb";
 
 import "backend/operation/enum.proto";
 import "backend/operation/pagination.proto";
-// 用户权限
+// 用户角色
 message AddRoleRequest {
   int64 id = 1;
   string name = 2;        // 角色名称
@@ -30,12 +30,6 @@ message SearchRoleResponse {
   repeated AddRoleRequest list = 3;
 }
 
-
-message AddMenuRequest {
-  int64 id = 1;
-  string name = 2;
-}
-
 // 用户token
 message SystemToken {
   string token = 1;
@@ -83,7 +77,41 @@ message SearchUserResponse {
   repeated AddSystemUser list = 3;
 }
 
-message EditIsShowSystemUserRequest {
+message IsShowSystemUserRequest {
   int64 user_id = 1;  // 用户id
   IsShow.Kind is_show = 2;   // is_show
+}
+
+// 系统菜单权限
+message AddMenuRequest {
+  int64 id = 1;
+  string name = 2;       // 名称
+  int64 parent_id = 3;   // 父id
+  int32 menu_type = 4;  // 菜单类型 1 菜单 2 按钮
+  string title = 5;      // 标题
+  string path = 6;       // 路径 path
+  IsShow.Kind is_show = 7;   // 是否显示
+  string component = 8;      // 组件
+  string icon = 9;           // 图标
+  int32 sort = 10;           // 排序
+  string redirect = 11;      // 重定向
+  int64 created_at = 12;     // 创建时间
+  string crated_at_format = 13;      // 创建时间格式化
+}
+
+message IsShowSystemMenuRequest {
+  int64 menu_id = 1;  // 角色id
+  IsShow.Kind is_show = 2;   // is_show
+}
+
+// 查询菜单权限
+message SearchMenuRequest {
+  string name = 1;               // 菜单名称
+  PaginationModel pagination = 2; // 分页
+}
+
+message SearchMenuResponse {
+  int32 page = 1;
+  int32 total = 2;
+  repeated AddMenuRequest list = 3;
 }

+ 120 - 3
http/handler/system/menu.go

@@ -4,20 +4,137 @@ import (
 	"kpt-tmr-group/http/middleware"
 	"kpt-tmr-group/pkg/apierr"
 	"kpt-tmr-group/pkg/apiok"
+	"kpt-tmr-group/pkg/valid"
 	operationPb "kpt-tmr-group/proto/go/backend/operation"
 	"net/http"
+	"strconv"
 
 	"github.com/gin-gonic/gin"
 )
 
-func AddMenu(c *gin.Context) {
+// AddSystemMenu 添加系统菜单权限
+func AddSystemMenu(c *gin.Context) {
+	var req operationPb.AddMenuRequest
+	if err := c.BindJSON(&req); err != nil {
+		apierr.AbortBadRequest(c, http.StatusBadRequest, err)
+		return
+	}
+
+	if err := valid.ValidateStruct(&req,
+		valid.Field(&req.Name, valid.Required),
+		valid.Field(&req.Title, valid.Required),
+		valid.Field(&req.MenuType, valid.Required, valid.Min(0), valid.Max(2)),
+		valid.Field(&req.Path, valid.Required),
+	); err != nil {
+		apierr.AbortBadRequest(c, http.StatusBadRequest, err)
+		return
+	}
+
+	if req.MenuType == 1 {
+		if err := valid.Validate(&req.Component, valid.Required); err != nil {
+			apierr.AbortBadRequest(c, http.StatusBadRequest, err)
+			return
+		}
+	}
+
+	if err := middleware.BackendOperation(c).OpsService.CreateSystemMenu(c, &req); err != nil {
+		apierr.ClassifiedAbort(c, err)
+		return
+	}
+
+	c.JSON(http.StatusOK, apiok.CommonResponse(apiok.NewApiOk(true)))
+}
 
-	var req operationPb.AddRoleRequest
+// EditSystemMenu 编辑系统菜单权限
+func EditSystemMenu(c *gin.Context) {
+	var req operationPb.AddMenuRequest
 	if err := c.BindJSON(&req); err != nil {
 		apierr.AbortBadRequest(c, http.StatusBadRequest, err)
 		return
 	}
-	if err := middleware.BackendOperation(c).OpsService.CreateSystemRole(c, &req); err != nil {
+
+	if err := valid.ValidateStruct(&req,
+		valid.Field(&req.Id, valid.Required, valid.Min(1)),
+		valid.Field(&req.Name, valid.Required),
+		valid.Field(&req.ParentId, valid.Required, valid.Min(0)),
+		valid.Field(&req.MenuType, valid.Required, valid.Min(0), valid.Max(2)),
+		valid.Field(&req.Path, valid.Required),
+	); err != nil {
+		apierr.AbortBadRequest(c, http.StatusBadRequest, err)
+		return
+	}
+
+	if req.MenuType == 1 {
+		if err := valid.Validate(&req.Component, valid.Required); err != nil {
+			apierr.AbortBadRequest(c, http.StatusBadRequest, err)
+			return
+		}
+	}
+
+	if err := middleware.BackendOperation(c).OpsService.EditSystemMenu(c, &req); err != nil {
+		apierr.ClassifiedAbort(c, err)
+		return
+	}
+
+	c.JSON(http.StatusOK, apiok.CommonResponse(apiok.NewApiOk(true)))
+}
+
+// IsShowSystemMenu 是否启动
+func IsShowSystemMenu(c *gin.Context) {
+	var req operationPb.IsShowSystemMenuRequest
+	if err := c.BindJSON(&req); err != nil {
+		apierr.AbortBadRequest(c, http.StatusBadRequest, err)
+		return
+	}
+
+	if err := valid.ValidateStruct(&req,
+		valid.Field(&req.MenuId, valid.Required, valid.Min(1)),
+		valid.Field(&req.IsShow, valid.Required, valid.Min(1), valid.Max(2)),
+	); err != nil {
+		apierr.AbortBadRequest(c, http.StatusBadRequest, err)
+		return
+	}
+
+	if err := middleware.Dependency(c).StoreEventHub.OpsService.IsShowSystemMenu(c, &req); err != nil {
+		apierr.ClassifiedAbort(c, err)
+		return
+	}
+	c.JSON(http.StatusOK, apiok.CommonResponse(apiok.NewApiOk(true)))
+}
+
+// SearchSystemMenuList 菜单列表查询
+func SearchSystemMenuList(c *gin.Context) {
+	var req operationPb.SearchMenuRequest
+	if err := c.BindJSON(&req); err != nil {
+		apierr.AbortBadRequest(c, http.StatusBadRequest, err)
+		return
+	}
+
+	req.Pagination = &operationPb.PaginationModel{
+		Page:       int32(c.GetInt(middleware.Page)),
+		PageSize:   int32(c.GetInt(middleware.PageSize)),
+		PageOffset: int32(c.GetInt(middleware.PageOffset)),
+	}
+
+	res, err := middleware.Dependency(c).StoreEventHub.OpsService.SearchSystemMenuList(c, &req)
+	if err != nil {
+		apierr.ClassifiedAbort(c, err)
+		return
+	}
+	c.JSON(http.StatusOK, apiok.CommonResponse(res))
+}
+
+// DeleteSystemMenu 删除菜单
+func DeleteSystemMenu(c *gin.Context) {
+	menuIdStr := c.Param("menu_id")
+	menuId, _ := strconv.Atoi(menuIdStr)
+
+	if err := valid.Validate(menuId, valid.Required, valid.Min(1)); err != nil {
+		apierr.ClassifiedAbort(c, err)
+		return
+	}
+
+	if err := middleware.BackendOperation(c).OpsService.DeleteSystemRole(c, int64(menuId)); err != nil {
 		apierr.ClassifiedAbort(c, err)
 		return
 	}

+ 5 - 9
http/handler/system/user.go

@@ -19,14 +19,10 @@ func Auth(c *gin.Context) {
 		return
 	}
 
-	validate := func() error {
-		return valid.ValidateStruct(&req,
-			valid.Field(&req.UserName, valid.Required),
-			valid.Field(&req.Password, valid.Required),
-		)
-	}
-
-	if err := validate(); err != nil {
+	if err := valid.ValidateStruct(&req,
+		valid.Field(&req.UserName, valid.Required),
+		valid.Field(&req.Password, valid.Required),
+	); err != nil {
 		apierr.AbortBadRequest(c, http.StatusBadRequest, err)
 		return
 	}
@@ -152,7 +148,7 @@ func DeleteUser(c *gin.Context) {
 }
 
 func IsShowSystemUser(c *gin.Context) {
-	var req operationPb.EditIsShowSystemUserRequest
+	var req operationPb.IsShowSystemUserRequest
 	if err := c.BindJSON(&req); err != nil {
 		apierr.AbortBadRequest(c, http.StatusBadRequest, err)
 		return

+ 24 - 14
http/route/app_api.go

@@ -22,22 +22,32 @@ func AppAPI(opts ...func(engine *gin.Engine)) func(s *gin.Engine) {
 		s.POST("/auth", system.Auth)
 
 		// system API 组
-		lingoRoute := authRouteGroup(s, "/api/v1/system/")
-		lingoRoute.POST("/user_info", system.GetUserInfo)
-		lingoRoute.POST("/user/add", system.AddSystemUser)
-		lingoRoute.POST("/user/list", system.SearchSystemUserList)
-		lingoRoute.POST("/user/edit", system.EditSystemUser)
-		lingoRoute.POST("/user/is_show", system.IsShowSystemUser)
-		lingoRoute.DELETE("/user/:user_id", system.DeleteUser)
-
-		lingoRoute.POST("/role/add", system.AddSystemRole)
-		lingoRoute.POST("/role/edit", system.EditSystemRole)
-		lingoRoute.DELETE("/role/:role_id", system.DeleteSystemRole)
-		lingoRoute.POST("/role/list", system.SearchSystemRoleList)
+		// 系统用户
+		systemRoute := authRouteGroup(s, "/api/v1/system/")
+		systemRoute.POST("/user_info", system.GetUserInfo)
+		systemRoute.POST("/user/add", system.AddSystemUser)
+		systemRoute.POST("/user/list", system.SearchSystemUserList)
+		systemRoute.POST("/user/edit", system.EditSystemUser)
+		systemRoute.POST("/user/is_show", system.IsShowSystemUser)
+		systemRoute.DELETE("/user/:user_id", system.DeleteUser)
+
+		// 系统角色
+		systemRoute.POST("/role/add", system.AddSystemRole)
+		systemRoute.POST("/role/edit", system.EditSystemRole)
+		systemRoute.DELETE("/role/:role_id", system.DeleteSystemRole)
+		systemRoute.POST("/role/list", system.SearchSystemRoleList)
+
+		// 系统菜单权限
+		systemRoute.POST("/menu/add", system.AddSystemMenu)
+		systemRoute.POST("/menu/edit", system.EditSystemMenu)
+		systemRoute.POST("/menu/is_show", system.IsShowSystemMenu)
+		systemRoute.POST("/menu/list", system.SearchSystemMenuList)
+		systemRoute.DELETE("/menu/:menu_id", system.DeleteSystemMenu)
 
 		// 牧场管理
-		lingoRoute.POST("/pasture/add", pasture.AddSystemPasture)
-		lingoRoute.POST("/pasture/list", pasture.SearchPastureList)
+		opsRoute := authRouteGroup(s, "/api/v1/ops/")
+		opsRoute.POST("/pasture/add", pasture.AddSystemPasture)
+		opsRoute.POST("/pasture/list", pasture.SearchPastureList)
 	}
 }
 

+ 57 - 1
model/system_menu.go

@@ -2,6 +2,7 @@ package model
 
 import (
 	operationPb "kpt-tmr-group/proto/go/backend/operation"
+	"time"
 )
 
 type SystemMenu struct {
@@ -12,6 +13,7 @@ type SystemMenu struct {
 	Title     string                  `json:"title,omitempty"`
 	Path      string                  `json:"path,omitempty"`
 	IsShow    operationPb.IsShow_Kind `json:"is_show,omitempty"`
+	IsDelete  operationPb.IsShow_Kind `json:"is_delete,omitempty"`
 	Component string                  `json:"component,omitempty"`
 	Icon      string                  `json:"icon,omitempty"`
 	Sort      int32                   `json:"sort,omitempty"`
@@ -22,5 +24,59 @@ type SystemMenu struct {
 }
 
 func (s *SystemMenu) TableName() string {
-	return "system_role"
+	return "system_menu"
+}
+
+type SystemMenuSlice []*SystemMenu
+
+func (s SystemMenuSlice) ToPB() []*operationPb.AddMenuRequest {
+	res := make([]*operationPb.AddMenuRequest, len(s))
+	for i, v := range s {
+		res[i] = &operationPb.AddMenuRequest{
+			Id:             v.Id,
+			Name:           v.Name,
+			MenuType:       v.MenuType,
+			Title:          v.Title,
+			IsShow:         v.IsShow,
+			Component:      v.Component,
+			Icon:           v.Icon,
+			Sort:           v.Sort,
+			Redirect:       v.Redirect,
+			ParentId:       v.ParentId,
+			CreatedAt:      v.CreatedAt,
+			CratedAtFormat: time.Unix(v.CreatedAt, 0).Format(LayoutTime),
+		}
+	}
+	return res
+}
+
+func (s *SystemMenu) ToPb() *operationPb.AddMenuRequest {
+	return &operationPb.AddMenuRequest{
+		Id:        s.Id,
+		Name:      s.Name,
+		MenuType:  s.MenuType,
+		Title:     s.Title,
+		Path:      s.Path,
+		Component: s.Component,
+		Icon:      s.Icon,
+		Sort:      s.Sort,
+		Redirect:  s.Redirect,
+		ParentId:  s.ParentId,
+		IsShow:    s.IsShow,
+		CreatedAt: s.CreatedAt,
+	}
+}
+
+type SystemMenuResponse struct {
+	Page  int32                         `json:"page"`
+	Total int32                         `json:"total"`
+	List  []*operationPb.AddMenuRequest `json:"list"`
+}
+
+func (s *SystemMenuResponse) ToPB() *operationPb.SearchMenuResponse {
+	return &operationPb.SearchMenuResponse{
+		Page:  s.Page,
+		Total: s.Total,
+		List:  s.List,
+	}
 }

+ 12 - 0
model/system_user.go

@@ -1,7 +1,9 @@
 package model
 
 import (
+	"fmt"
 	operationPb "kpt-tmr-group/proto/go/backend/operation"
+	"strings"
 	"time"
 )
 
@@ -40,6 +42,16 @@ func (s *SystemUser) SystemUserFormat(userRoles []*SystemRole) *operationPb.User
 	}
 }
 
+func (s *SystemUser) SystemUserRoleFormat(req *operationPb.AddSystemUser) {
+	roleIds := ""
+	for _, role := range req.Roles {
+		roleIds += fmt.Sprintf("%d,", role.Id)
+	}
+	if roleIds != "" {
+		s.RoleIds = strings.TrimRight(roleIds, ",")
+	}
+}
+
 type SystemUserSlice []*SystemUser
 
 func (s SystemUserSlice) ToPB() []*operationPb.AddSystemUser {

+ 8 - 1
module/backend/interface.go

@@ -53,11 +53,18 @@ type SystemOperation interface {
 	SearchSystemUserList(ctx context.Context, req *operationPb.SearchUserRequest) (*model.SystemUserResponse, error)
 	EditSystemUser(ctx context.Context, req *operationPb.AddSystemUser) error
 	DeleteSystemUser(ctx context.Context, userId int64) error
-	IsShowSystemUser(ctx context.Context, req *operationPb.EditIsShowSystemUserRequest) error
+	IsShowSystemUser(ctx context.Context, req *operationPb.IsShowSystemUserRequest) error
 
 	// CreateSystemRole 系统角色相关
 	CreateSystemRole(ctx context.Context, req *operationPb.AddRoleRequest) error
 	EditSystemRole(ctx context.Context, req *operationPb.AddRoleRequest) error
 	DeleteSystemRole(ctx context.Context, roleId int64) error
 	SearchSystemRoleList(ctx context.Context, req *operationPb.SearchRoleRequest) (*model.SystemRoleResponse, error)
+
+	// CreateSystemMenu 系统菜单权限
+	CreateSystemMenu(ctx context.Context, req *operationPb.AddMenuRequest) error
+	EditSystemMenu(ctx context.Context, req *operationPb.AddMenuRequest) error
+	IsShowSystemMenu(ctx context.Context, req *operationPb.IsShowSystemMenuRequest) error
+	SearchSystemMenuList(ctx context.Context, req *operationPb.SearchMenuRequest) (*model.SystemMenuResponse, error)
+	DeleteSystemMenu(ctx context.Context, menuId int64) error
 }

+ 111 - 13
module/backend/system_service.go

@@ -73,19 +73,16 @@ func (s *StoreEntry) GetUserInfo(ctx context.Context, token string) (*operationP
 
 // CreateSystemUser 创建系统用户
 func (s *StoreEntry) CreateSystemUser(ctx context.Context, req *operationPb.AddSystemUser) error {
-	roleIds := ""
-	for _, role := range req.Roles {
-		roleIds += fmt.Sprintf("%d,", role.Id)
-	}
+
 	systemUsers := &model.SystemUser{
 		Name:         req.Name,
 		EmployeeName: req.EmployeeName,
 		Phone:        req.Phone,
 		Password:     tool.Md5String(model.InitManagerPassword),
-		RoleIds:      strings.TrimRight(roleIds, ","),
 		CreateUser:   req.CreateUser,
 		IsShow:       req.IsShow,
 	}
+	systemUsers.SystemUserRoleFormat(req)
 
 	if err := s.DB.Create(systemUsers).Error; err != nil {
 		return xerr.WithStack(err)
@@ -138,13 +135,7 @@ func (s *StoreEntry) EditSystemUser(ctx context.Context, req *operationPb.AddSys
 		Phone:        req.Phone,
 		CreateUser:   req.CreateUser,
 	}
-	roles := ""
-	for _, v := range req.Roles {
-		roles += fmt.Sprintf("%d,", v.Id)
-	}
-	if roles != "" {
-		updateData.RoleIds = strings.TrimRight(roles, ",")
-	}
+	updateData.SystemUserRoleFormat(req)
 
 	if err := s.DB.Model(new(model.SystemUser)).Omit("is_show", "password", "is_delete").
 		Where("id = ?", systemUser.Id).
@@ -174,7 +165,7 @@ func (s *StoreEntry) DeleteSystemUser(ctx context.Context, userId int64) error {
 }
 
 // IsShowSystemUser 用户是否启用
-func (s *StoreEntry) IsShowSystemUser(ctx context.Context, req *operationPb.EditIsShowSystemUserRequest) error {
+func (s *StoreEntry) IsShowSystemUser(ctx context.Context, req *operationPb.IsShowSystemUserRequest) error {
 	systemUser := &model.SystemUser{
 		Id: req.UserId,
 	}
@@ -266,3 +257,110 @@ func (s *StoreEntry) SearchSystemRoleList(ctx context.Context, req *operationPb.
 		List:  model.SystemRoleSlice(systemRole).ToPB(),
 	}, nil
 }
+
+// CreateSystemMenu 添加系统菜单权限
+func (s *StoreEntry) CreateSystemMenu(ctx context.Context, req *operationPb.AddMenuRequest) error {
+	systemMenu := &model.SystemMenu{
+		Name:      req.Name,
+		MenuType:  req.MenuType,
+		Title:     req.Title,
+		Path:      req.Path,
+		Component: req.Component,
+		Icon:      req.Icon,
+		Sort:      req.Sort,
+		Redirect:  req.Redirect,
+		ParentId:  req.ParentId,
+		IsShow:    operationPb.IsShow_OK,
+		IsDelete:  operationPb.IsShow_OK,
+	}
+
+	if err := s.DB.Create(systemMenu).Error; err != nil {
+		return xerr.WithStack(err)
+	}
+	return nil
+}
+
+// EditSystemMenu 编辑系统菜单权限
+func (s *StoreEntry) EditSystemMenu(ctx context.Context, req *operationPb.AddMenuRequest) error {
+	systemMenu := &model.SystemMenu{Id: req.Id}
+	if err := s.DB.First(systemMenu).Error; err != nil {
+		if errors.Is(err, gorm.ErrRecordNotFound) {
+			return xerr.Custom("该数据不存在!")
+		}
+		return xerr.WithStack(err)
+	}
+
+	updateData := &model.SystemMenu{
+		Name:      req.Name,
+		MenuType:  req.MenuType,
+		Title:     req.Title,
+		Path:      req.Path,
+		Component: req.Component,
+		Icon:      req.Icon,
+		Sort:      req.Sort,
+		Redirect:  req.Redirect,
+		ParentId:  req.ParentId,
+	}
+
+	if err := s.DB.Model(new(model.SystemMenu)).Omit("is_show").
+		Where("id = ?", systemMenu.Id).
+		Updates(updateData).Error; err != nil {
+		return xerr.WithStack(err)
+	}
+
+	return nil
+}
+
+// IsShowSystemMenu 菜单是否启用
+func (s *StoreEntry) IsShowSystemMenu(ctx context.Context, req *operationPb.IsShowSystemMenuRequest) error {
+	systemMenu := &model.SystemMenu{Id: req.MenuId}
+	if err := s.DB.First(systemMenu).Error; err != nil {
+		if errors.Is(err, gorm.ErrRecordNotFound) {
+			return xerr.Custom("该数据不存在")
+		}
+		return xerr.WithStack(err)
+	}
+
+	if err := s.DB.Model(systemMenu).Update("is_show", req.IsShow).Error; err != nil {
+		return xerr.WithStack(err)
+	}
+	return nil
+}
+
+// SearchSystemMenuList 菜单列表查询
+func (s *StoreEntry) SearchSystemMenuList(ctx context.Context, req *operationPb.SearchMenuRequest) (*model.SystemMenuResponse, error) {
+	systemMenu := make([]*model.SystemMenu, 0)
+	var count int64 = 0
+
+	pref := s.DB.Model(new(model.SystemMenu)).Where("is_delete = ?", operationPb.IsShow_OK)
+	if req.Name != "" {
+		pref.Where("name like ?", fmt.Sprintf("%s%s%s", "%", req.Name, "%"))
+	}
+
+	if err := pref.Order("id desc").Count(&count).Limit(int(req.Pagination.PageSize)).Offset(int(req.Pagination.PageOffset)).
+		Find(&systemMenu).Debug().Error; err != nil {
+		return nil, xerr.WithStack(err)
+	}
+
+	return &model.SystemMenuResponse{
+		Page:  req.Pagination.Page,
+		Total: int32(count),
+		List:  model.SystemMenuSlice(systemMenu).ToPB(),
+	}, nil
+}
+
+// DeleteSystemMenu 删除系统菜单
+func (s *StoreEntry) DeleteSystemMenu(ctx context.Context, menuId int64) error {
+	systemMenu := &model.SystemMenu{Id: menuId}
+	if err := s.DB.First(systemMenu).Error; err != nil {
+		if errors.Is(err, gorm.ErrRecordNotFound) {
+			return xerr.Custom("该数据不存在")
+		}
+		return xerr.WithStack(err)
+	}
+
+	if err := s.DB.Model(systemMenu).Update("is_delete", operationPb.IsShow_NO).Error; err != nil {
+		return xerr.WithStack(err)
+	}
+	return nil
+}

+ 539 - 191
proto/go/backend/operation/system.pb.go

@@ -20,7 +20,7 @@ const (
 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 )
 
-// 用户权限
+// 用户角色
 type AddRoleRequest struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -258,61 +258,6 @@ func (x *SearchRoleResponse) GetList() []*AddRoleRequest {
 	return nil
 }
 
-type AddMenuRequest struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
-	unknownFields protoimpl.UnknownFields
-
-	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
-	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
-}
-
-func (x *AddMenuRequest) Reset() {
-	*x = AddMenuRequest{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_backend_operation_system_proto_msgTypes[3]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
-}
-
-func (x *AddMenuRequest) String() string {
-	return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AddMenuRequest) ProtoMessage() {}
-
-func (x *AddMenuRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_backend_operation_system_proto_msgTypes[3]
-	if protoimpl.UnsafeEnabled && x != nil {
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		if ms.LoadMessageInfo() == nil {
-			ms.StoreMessageInfo(mi)
-		}
-		return ms
-	}
-	return mi.MessageOf(x)
-}
-
-// Deprecated: Use AddMenuRequest.ProtoReflect.Descriptor instead.
-func (*AddMenuRequest) Descriptor() ([]byte, []int) {
-	return file_backend_operation_system_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *AddMenuRequest) GetId() int64 {
-	if x != nil {
-		return x.Id
-	}
-	return 0
-}
-
-func (x *AddMenuRequest) GetName() string {
-	if x != nil {
-		return x.Name
-	}
-	return ""
-}
-
 // 用户token
 type SystemToken struct {
 	state         protoimpl.MessageState
@@ -325,7 +270,7 @@ type SystemToken struct {
 func (x *SystemToken) Reset() {
 	*x = SystemToken{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_backend_operation_system_proto_msgTypes[4]
+		mi := &file_backend_operation_system_proto_msgTypes[3]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -338,7 +283,7 @@ func (x *SystemToken) String() string {
 func (*SystemToken) ProtoMessage() {}
 
 func (x *SystemToken) ProtoReflect() protoreflect.Message {
-	mi := &file_backend_operation_system_proto_msgTypes[4]
+	mi := &file_backend_operation_system_proto_msgTypes[3]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -351,7 +296,7 @@ func (x *SystemToken) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use SystemToken.ProtoReflect.Descriptor instead.
 func (*SystemToken) Descriptor() ([]byte, []int) {
-	return file_backend_operation_system_proto_rawDescGZIP(), []int{4}
+	return file_backend_operation_system_proto_rawDescGZIP(), []int{3}
 }
 
 func (x *SystemToken) GetToken() string {
@@ -377,7 +322,7 @@ type UserAuth struct {
 func (x *UserAuth) Reset() {
 	*x = UserAuth{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_backend_operation_system_proto_msgTypes[5]
+		mi := &file_backend_operation_system_proto_msgTypes[4]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -390,7 +335,7 @@ func (x *UserAuth) String() string {
 func (*UserAuth) ProtoMessage() {}
 
 func (x *UserAuth) ProtoReflect() protoreflect.Message {
-	mi := &file_backend_operation_system_proto_msgTypes[5]
+	mi := &file_backend_operation_system_proto_msgTypes[4]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -403,7 +348,7 @@ func (x *UserAuth) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use UserAuth.ProtoReflect.Descriptor instead.
 func (*UserAuth) Descriptor() ([]byte, []int) {
-	return file_backend_operation_system_proto_rawDescGZIP(), []int{5}
+	return file_backend_operation_system_proto_rawDescGZIP(), []int{4}
 }
 
 func (x *UserAuth) GetUserName() string {
@@ -453,7 +398,7 @@ type UserRole struct {
 func (x *UserRole) Reset() {
 	*x = UserRole{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_backend_operation_system_proto_msgTypes[6]
+		mi := &file_backend_operation_system_proto_msgTypes[5]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -466,7 +411,7 @@ func (x *UserRole) String() string {
 func (*UserRole) ProtoMessage() {}
 
 func (x *UserRole) ProtoReflect() protoreflect.Message {
-	mi := &file_backend_operation_system_proto_msgTypes[6]
+	mi := &file_backend_operation_system_proto_msgTypes[5]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -479,7 +424,7 @@ func (x *UserRole) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use UserRole.ProtoReflect.Descriptor instead.
 func (*UserRole) Descriptor() ([]byte, []int) {
-	return file_backend_operation_system_proto_rawDescGZIP(), []int{6}
+	return file_backend_operation_system_proto_rawDescGZIP(), []int{5}
 }
 
 func (x *UserRole) GetId() int64 {
@@ -515,7 +460,7 @@ type AddSystemUser struct {
 func (x *AddSystemUser) Reset() {
 	*x = AddSystemUser{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_backend_operation_system_proto_msgTypes[7]
+		mi := &file_backend_operation_system_proto_msgTypes[6]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -528,7 +473,7 @@ func (x *AddSystemUser) String() string {
 func (*AddSystemUser) ProtoMessage() {}
 
 func (x *AddSystemUser) ProtoReflect() protoreflect.Message {
-	mi := &file_backend_operation_system_proto_msgTypes[7]
+	mi := &file_backend_operation_system_proto_msgTypes[6]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -541,7 +486,7 @@ func (x *AddSystemUser) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use AddSystemUser.ProtoReflect.Descriptor instead.
 func (*AddSystemUser) Descriptor() ([]byte, []int) {
-	return file_backend_operation_system_proto_rawDescGZIP(), []int{7}
+	return file_backend_operation_system_proto_rawDescGZIP(), []int{6}
 }
 
 func (x *AddSystemUser) GetId() int64 {
@@ -624,7 +569,7 @@ type SearchUserRequest struct {
 func (x *SearchUserRequest) Reset() {
 	*x = SearchUserRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_backend_operation_system_proto_msgTypes[8]
+		mi := &file_backend_operation_system_proto_msgTypes[7]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -637,7 +582,7 @@ func (x *SearchUserRequest) String() string {
 func (*SearchUserRequest) ProtoMessage() {}
 
 func (x *SearchUserRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_backend_operation_system_proto_msgTypes[8]
+	mi := &file_backend_operation_system_proto_msgTypes[7]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -650,7 +595,7 @@ func (x *SearchUserRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use SearchUserRequest.ProtoReflect.Descriptor instead.
 func (*SearchUserRequest) Descriptor() ([]byte, []int) {
-	return file_backend_operation_system_proto_rawDescGZIP(), []int{8}
+	return file_backend_operation_system_proto_rawDescGZIP(), []int{7}
 }
 
 func (x *SearchUserRequest) GetName() string {
@@ -708,7 +653,7 @@ type SearchUserResponse struct {
 func (x *SearchUserResponse) Reset() {
 	*x = SearchUserResponse{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_backend_operation_system_proto_msgTypes[9]
+		mi := &file_backend_operation_system_proto_msgTypes[8]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -721,7 +666,7 @@ func (x *SearchUserResponse) String() string {
 func (*SearchUserResponse) ProtoMessage() {}
 
 func (x *SearchUserResponse) ProtoReflect() protoreflect.Message {
-	mi := &file_backend_operation_system_proto_msgTypes[9]
+	mi := &file_backend_operation_system_proto_msgTypes[8]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -734,7 +679,7 @@ func (x *SearchUserResponse) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use SearchUserResponse.ProtoReflect.Descriptor instead.
 func (*SearchUserResponse) Descriptor() ([]byte, []int) {
-	return file_backend_operation_system_proto_rawDescGZIP(), []int{9}
+	return file_backend_operation_system_proto_rawDescGZIP(), []int{8}
 }
 
 func (x *SearchUserResponse) GetPage() int32 {
@@ -758,7 +703,7 @@ func (x *SearchUserResponse) GetList() []*AddSystemUser {
 	return nil
 }
 
-type EditIsShowSystemUserRequest struct {
+type IsShowSystemUserRequest struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
@@ -767,8 +712,75 @@ type EditIsShowSystemUserRequest struct {
 	IsShow IsShow_Kind `protobuf:"varint,2,opt,name=is_show,json=isShow,proto3,enum=backend.operation.IsShow_Kind" json:"is_show,omitempty"` // is_show
 }
 
-func (x *EditIsShowSystemUserRequest) Reset() {
-	*x = EditIsShowSystemUserRequest{}
+func (x *IsShowSystemUserRequest) Reset() {
+	*x = IsShowSystemUserRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_backend_operation_system_proto_msgTypes[9]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *IsShowSystemUserRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*IsShowSystemUserRequest) ProtoMessage() {}
+
+func (x *IsShowSystemUserRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_backend_operation_system_proto_msgTypes[9]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use IsShowSystemUserRequest.ProtoReflect.Descriptor instead.
+func (*IsShowSystemUserRequest) Descriptor() ([]byte, []int) {
+	return file_backend_operation_system_proto_rawDescGZIP(), []int{9}
+}
+
+func (x *IsShowSystemUserRequest) GetUserId() int64 {
+	if x != nil {
+		return x.UserId
+	}
+	return 0
+}
+
+func (x *IsShowSystemUserRequest) GetIsShow() IsShow_Kind {
+	if x != nil {
+		return x.IsShow
+	}
+	return IsShow_INVALID
+}
+
+// 系统菜单权限
+type AddMenuRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Id             int64       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
+	Name           string      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                                       // 名称
+	ParentId       int64       `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`                              // 父id
+	MenuType       int32       `protobuf:"varint,4,opt,name=menu_type,json=menuType,proto3" json:"menu_type,omitempty"`                              // 菜单类型 1 菜单 2 按钮
+	Title          string      `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`                                                     // 标题
+	Path           string      `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"`                                                       // 路径 path
+	IsShow         IsShow_Kind `protobuf:"varint,7,opt,name=is_show,json=isShow,proto3,enum=backend.operation.IsShow_Kind" json:"is_show,omitempty"` // 是否显示
+	Component      string      `protobuf:"bytes,8,opt,name=component,proto3" json:"component,omitempty"`                                             // 组件
+	Icon           string      `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"`                                                       // 图标
+	Sort           int32       `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"`                                                     // 排序
+	Redirect       string      `protobuf:"bytes,11,opt,name=redirect,proto3" json:"redirect,omitempty"`                                              // 重定向
+	CreatedAt      int64       `protobuf:"varint,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`                          // 创建时间
+	CratedAtFormat string      `protobuf:"bytes,13,opt,name=crated_at_format,json=cratedAtFormat,proto3" json:"crated_at_format,omitempty"`          // 创建时间格式化
+}
+
+func (x *AddMenuRequest) Reset() {
+	*x = AddMenuRequest{}
 	if protoimpl.UnsafeEnabled {
 		mi := &file_backend_operation_system_proto_msgTypes[10]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -776,13 +788,13 @@ func (x *EditIsShowSystemUserRequest) Reset() {
 	}
 }
 
-func (x *EditIsShowSystemUserRequest) String() string {
+func (x *AddMenuRequest) String() string {
 	return protoimpl.X.MessageStringOf(x)
 }
 
-func (*EditIsShowSystemUserRequest) ProtoMessage() {}
+func (*AddMenuRequest) ProtoMessage() {}
 
-func (x *EditIsShowSystemUserRequest) ProtoReflect() protoreflect.Message {
+func (x *AddMenuRequest) ProtoReflect() protoreflect.Message {
 	mi := &file_backend_operation_system_proto_msgTypes[10]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -794,25 +806,276 @@ func (x *EditIsShowSystemUserRequest) ProtoReflect() protoreflect.Message {
 	return mi.MessageOf(x)
 }
 
-// Deprecated: Use EditIsShowSystemUserRequest.ProtoReflect.Descriptor instead.
-func (*EditIsShowSystemUserRequest) Descriptor() ([]byte, []int) {
+// Deprecated: Use AddMenuRequest.ProtoReflect.Descriptor instead.
+func (*AddMenuRequest) Descriptor() ([]byte, []int) {
 	return file_backend_operation_system_proto_rawDescGZIP(), []int{10}
 }
 
-func (x *EditIsShowSystemUserRequest) GetUserId() int64 {
+func (x *AddMenuRequest) GetId() int64 {
 	if x != nil {
-		return x.UserId
+		return x.Id
 	}
 	return 0
 }
 
-func (x *EditIsShowSystemUserRequest) GetIsShow() IsShow_Kind {
+func (x *AddMenuRequest) GetName() string {
+	if x != nil {
+		return x.Name
+	}
+	return ""
+}
+
+func (x *AddMenuRequest) GetParentId() int64 {
+	if x != nil {
+		return x.ParentId
+	}
+	return 0
+}
+
+func (x *AddMenuRequest) GetMenuType() int32 {
+	if x != nil {
+		return x.MenuType
+	}
+	return 0
+}
+
+func (x *AddMenuRequest) GetTitle() string {
+	if x != nil {
+		return x.Title
+	}
+	return ""
+}
+
+func (x *AddMenuRequest) GetPath() string {
+	if x != nil {
+		return x.Path
+	}
+	return ""
+}
+
+func (x *AddMenuRequest) GetIsShow() IsShow_Kind {
 	if x != nil {
 		return x.IsShow
 	}
 	return IsShow_INVALID
 }
 
+func (x *AddMenuRequest) GetComponent() string {
+	if x != nil {
+		return x.Component
+	}
+	return ""
+}
+
+func (x *AddMenuRequest) GetIcon() string {
+	if x != nil {
+		return x.Icon
+	}
+	return ""
+}
+
+func (x *AddMenuRequest) GetSort() int32 {
+	if x != nil {
+		return x.Sort
+	}
+	return 0
+}
+
+func (x *AddMenuRequest) GetRedirect() string {
+	if x != nil {
+		return x.Redirect
+	}
+	return ""
+}
+
+func (x *AddMenuRequest) GetCreatedAt() int64 {
+	if x != nil {
+		return x.CreatedAt
+	}
+	return 0
+}
+
+func (x *AddMenuRequest) GetCratedAtFormat() string {
+	if x != nil {
+		return x.CratedAtFormat
+	}
+	return ""
+}
+
+type IsShowSystemMenuRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	MenuId int64       `protobuf:"varint,1,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`                                    // 角色id
+	IsShow IsShow_Kind `protobuf:"varint,2,opt,name=is_show,json=isShow,proto3,enum=backend.operation.IsShow_Kind" json:"is_show,omitempty"` // is_show
+}
+
+func (x *IsShowSystemMenuRequest) Reset() {
+	*x = IsShowSystemMenuRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_backend_operation_system_proto_msgTypes[11]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *IsShowSystemMenuRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*IsShowSystemMenuRequest) ProtoMessage() {}
+
+func (x *IsShowSystemMenuRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_backend_operation_system_proto_msgTypes[11]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use IsShowSystemMenuRequest.ProtoReflect.Descriptor instead.
+func (*IsShowSystemMenuRequest) Descriptor() ([]byte, []int) {
+	return file_backend_operation_system_proto_rawDescGZIP(), []int{11}
+}
+
+func (x *IsShowSystemMenuRequest) GetMenuId() int64 {
+	if x != nil {
+		return x.MenuId
+	}
+	return 0
+}
+
+func (x *IsShowSystemMenuRequest) GetIsShow() IsShow_Kind {
+	if x != nil {
+		return x.IsShow
+	}
+	return IsShow_INVALID
+}
+
+// 查询菜单权限
+type SearchMenuRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Name       string           `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`             // 菜单名称
+	Pagination *PaginationModel `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // 分页
+}
+
+func (x *SearchMenuRequest) Reset() {
+	*x = SearchMenuRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_backend_operation_system_proto_msgTypes[12]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *SearchMenuRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SearchMenuRequest) ProtoMessage() {}
+
+func (x *SearchMenuRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_backend_operation_system_proto_msgTypes[12]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use SearchMenuRequest.ProtoReflect.Descriptor instead.
+func (*SearchMenuRequest) Descriptor() ([]byte, []int) {
+	return file_backend_operation_system_proto_rawDescGZIP(), []int{12}
+}
+
+func (x *SearchMenuRequest) GetName() string {
+	if x != nil {
+		return x.Name
+	}
+	return ""
+}
+
+func (x *SearchMenuRequest) GetPagination() *PaginationModel {
+	if x != nil {
+		return x.Pagination
+	}
+	return nil
+}
+
+type SearchMenuResponse struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Page  int32             `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
+	Total int32             `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
+	List  []*AddMenuRequest `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
+}
+
+func (x *SearchMenuResponse) Reset() {
+	*x = SearchMenuResponse{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_backend_operation_system_proto_msgTypes[13]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *SearchMenuResponse) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SearchMenuResponse) ProtoMessage() {}
+
+func (x *SearchMenuResponse) ProtoReflect() protoreflect.Message {
+	mi := &file_backend_operation_system_proto_msgTypes[13]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use SearchMenuResponse.ProtoReflect.Descriptor instead.
+func (*SearchMenuResponse) Descriptor() ([]byte, []int) {
+	return file_backend_operation_system_proto_rawDescGZIP(), []int{13}
+}
+
+func (x *SearchMenuResponse) GetPage() int32 {
+	if x != nil {
+		return x.Page
+	}
+	return 0
+}
+
+func (x *SearchMenuResponse) GetTotal() int32 {
+	if x != nil {
+		return x.Total
+	}
+	return 0
+}
+
+func (x *SearchMenuResponse) GetList() []*AddMenuRequest {
+	if x != nil {
+		return x.List
+	}
+	return nil
+}
+
 var File_backend_operation_system_proto protoreflect.FileDescriptor
 
 var file_backend_operation_system_proto_rawDesc = []byte{
@@ -858,81 +1121,123 @@ var file_backend_operation_system_proto_rawDesc = []byte{
 	0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x61, 0x63, 0x6b,
 	0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64,
 	0x64, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69,
-	0x73, 0x74, 0x22, 0x34, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6e, 0x75, 0x52, 0x65, 0x71,
-	0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
-	0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74,
-	0x65, 0x6d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
-	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb1, 0x01,
-	0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73,
-	0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
-	0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
-	0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
-	0x6f, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x6f, 0x6c,
-	0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65,
-	0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x55, 0x73, 0x65,
-	0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d,
-	0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x4e, 0x61, 0x6d,
-	0x65, 0x22, 0x2e, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0e, 0x0a,
+	0x73, 0x74, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x6f, 0x6b, 0x65,
+	0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb1, 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72,
+	0x41, 0x75, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d,
+	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d,
+	0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x14, 0x0a,
+	0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68,
+	0x6f, 0x6e, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03,
+	0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65,
+	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52,
+	0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79,
+	0x65, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65,
+	0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2e, 0x0a, 0x08, 0x55,
+	0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
+	0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
+	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc4, 0x02, 0x0a, 0x0d,
+	0x41, 0x64, 0x64, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a,
 	0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a,
 	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
-	0x65, 0x22, 0xc4, 0x02, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x55,
-	0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
-	0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65,
-	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x31, 0x0a,
-	0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62,
-	0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
-	0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73,
-	0x12, 0x37, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x05, 0x20, 0x01, 0x28,
+	0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73,
+	0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64,
+	0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52,
+	0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x73,
+	0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x61,
+	0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
+	0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x06, 0x69, 0x73, 0x53,
+	0x68, 0x6f, 0x77, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x5f,
+	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x6d, 0x70, 0x6c,
+	0x6f, 0x79, 0x65, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61,
+	0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63,
+	0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65,
+	0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63,
+	0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x63, 0x72, 0x61, 0x74,
+	0x65, 0x64, 0x5f, 0x61, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x0e, 0x63, 0x72, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x46, 0x6f, 0x72, 0x6d,
+	0x61, 0x74, 0x22, 0xa1, 0x02, 0x0a, 0x11, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65,
+	0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d,
+	0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x4e, 0x61, 0x6d,
+	0x65, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01,
+	0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65,
+	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x4b, 0x69,
+	0x6e, 0x64, 0x52, 0x06, 0x69, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x72,
+	0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65,
+	0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53,
+	0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61,
+	0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01,
+	0x28, 0x03, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x64, 0x54, 0x69,
+	0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+	0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64,
+	0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e,
+	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69,
+	0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x74, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
+	0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04,
+	0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65,
+	0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
+	0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03,
+	0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f,
+	0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x53, 0x79, 0x73, 0x74,
+	0x65, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x6b, 0x0a, 0x17,
+	0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x55, 0x73, 0x65, 0x72,
+	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f,
+	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
+	0x12, 0x37, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28,
 	0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72,
 	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x4b, 0x69, 0x6e,
-	0x64, 0x52, 0x06, 0x69, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x6d, 0x70,
-	0x6c, 0x6f, 0x79, 0x65, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
-	0x52, 0x0c, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f,
-	0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12,
-	0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20,
+	0x64, 0x52, 0x06, 0x69, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x22, 0xfc, 0x02, 0x0a, 0x0e, 0x41, 0x64,
+	0x64, 0x4d, 0x65, 0x6e, 0x75, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
+	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
+	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+	0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
+	0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a,
+	0x09, 0x6d, 0x65, 0x6e, 0x75, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
+	0x52, 0x08, 0x6d, 0x65, 0x6e, 0x75, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,
+	0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
+	0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
+	0x70, 0x61, 0x74, 0x68, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18,
+	0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e,
+	0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77,
+	0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x06, 0x69, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x12, 0x1c, 0x0a,
+	0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x69,
+	0x63, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12,
+	0x12, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73,
+	0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18,
+	0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12,
+	0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0c, 0x20,
 	0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x28,
 	0x0a, 0x10, 0x63, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d,
-	0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x72, 0x61, 0x74, 0x65, 0x64,
-	0x41, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0xa1, 0x02, 0x0a, 0x11, 0x53, 0x65, 0x61,
-	0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12,
-	0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
-	0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x5f, 0x6e,
-	0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x6d, 0x70, 0x6c, 0x6f,
-	0x79, 0x65, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68,
-	0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65,
-	0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x73, 0x53,
-	0x68, 0x6f, 0x77, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x06, 0x69, 0x73, 0x53, 0x68, 0x6f, 0x77,
-	0x12, 0x2c, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x72,
-	0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x63, 0x72,
-	0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x28,
-	0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69,
-	0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
-	0x64, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69,
-	0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62,
-	0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
-	0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x6c,
-	0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x74, 0x0a, 0x12,
-	0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
-	0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
-	0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18,
-	0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x04,
-	0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x61, 0x63,
-	0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41,
-	0x64, 0x64, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x6c, 0x69,
-	0x73, 0x74, 0x22, 0x6f, 0x0a, 0x1b, 0x45, 0x64, 0x69, 0x74, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77,
-	0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
-	0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
-	0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x73,
-	0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x61,
-	0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
-	0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x06, 0x69, 0x73, 0x53,
-	0x68, 0x6f, 0x77, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x3b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
-	0x6f, 0x6e, 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x72, 0x61, 0x74, 0x65, 0x64,
+	0x41, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x6b, 0x0a, 0x17, 0x49, 0x73, 0x53, 0x68,
+	0x6f, 0x77, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4d, 0x65, 0x6e, 0x75, 0x52, 0x65, 0x71, 0x75,
+	0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x65, 0x6e, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x01,
+	0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x65, 0x6e, 0x75, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x07,
+	0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e,
+	0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
+	0x6e, 0x2e, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x06, 0x69,
+	0x73, 0x53, 0x68, 0x6f, 0x77, 0x22, 0x6b, 0x0a, 0x11, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d,
+	0x65, 0x6e, 0x75, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
+	0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42,
+	0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
+	0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65,
+	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
+	0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
+	0x6f, 0x6e, 0x22, 0x75, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x65, 0x6e, 0x75,
+	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65,
+	0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05,
+	0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74,
+	0x61, 0x6c, 0x12, 0x35, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
+	0x32, 0x21, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61,
+	0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6e, 0x75, 0x52, 0x65, 0x71, 0x75,
+	0x65, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x3b, 0x6f,
+	0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+	0x6f, 0x33,
 }
 
 var (
@@ -947,38 +1252,45 @@ func file_backend_operation_system_proto_rawDescGZIP() []byte {
 	return file_backend_operation_system_proto_rawDescData
 }
 
-var file_backend_operation_system_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
+var file_backend_operation_system_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
 var file_backend_operation_system_proto_goTypes = []interface{}{
-	(*AddRoleRequest)(nil),              // 0: backend.operation.AddRoleRequest
-	(*SearchRoleRequest)(nil),           // 1: backend.operation.SearchRoleRequest
-	(*SearchRoleResponse)(nil),          // 2: backend.operation.SearchRoleResponse
-	(*AddMenuRequest)(nil),              // 3: backend.operation.AddMenuRequest
-	(*SystemToken)(nil),                 // 4: backend.operation.SystemToken
-	(*UserAuth)(nil),                    // 5: backend.operation.UserAuth
-	(*UserRole)(nil),                    // 6: backend.operation.UserRole
-	(*AddSystemUser)(nil),               // 7: backend.operation.AddSystemUser
-	(*SearchUserRequest)(nil),           // 8: backend.operation.SearchUserRequest
-	(*SearchUserResponse)(nil),          // 9: backend.operation.SearchUserResponse
-	(*EditIsShowSystemUserRequest)(nil), // 10: backend.operation.EditIsShowSystemUserRequest
-	(IsShow_Kind)(0),                    // 11: backend.operation.IsShow.Kind
-	(*PaginationModel)(nil),             // 12: backend.operation.PaginationModel
+	(*AddRoleRequest)(nil),          // 0: backend.operation.AddRoleRequest
+	(*SearchRoleRequest)(nil),       // 1: backend.operation.SearchRoleRequest
+	(*SearchRoleResponse)(nil),      // 2: backend.operation.SearchRoleResponse
+	(*SystemToken)(nil),             // 3: backend.operation.SystemToken
+	(*UserAuth)(nil),                // 4: backend.operation.UserAuth
+	(*UserRole)(nil),                // 5: backend.operation.UserRole
+	(*AddSystemUser)(nil),           // 6: backend.operation.AddSystemUser
+	(*SearchUserRequest)(nil),       // 7: backend.operation.SearchUserRequest
+	(*SearchUserResponse)(nil),      // 8: backend.operation.SearchUserResponse
+	(*IsShowSystemUserRequest)(nil), // 9: backend.operation.IsShowSystemUserRequest
+	(*AddMenuRequest)(nil),          // 10: backend.operation.AddMenuRequest
+	(*IsShowSystemMenuRequest)(nil), // 11: backend.operation.IsShowSystemMenuRequest
+	(*SearchMenuRequest)(nil),       // 12: backend.operation.SearchMenuRequest
+	(*SearchMenuResponse)(nil),      // 13: backend.operation.SearchMenuResponse
+	(IsShow_Kind)(0),                // 14: backend.operation.IsShow.Kind
+	(*PaginationModel)(nil),         // 15: backend.operation.PaginationModel
 }
 var file_backend_operation_system_proto_depIdxs = []int32{
-	11, // 0: backend.operation.AddRoleRequest.is_show:type_name -> backend.operation.IsShow.Kind
-	12, // 1: backend.operation.SearchRoleRequest.pagination:type_name -> backend.operation.PaginationModel
+	14, // 0: backend.operation.AddRoleRequest.is_show:type_name -> backend.operation.IsShow.Kind
+	15, // 1: backend.operation.SearchRoleRequest.pagination:type_name -> backend.operation.PaginationModel
 	0,  // 2: backend.operation.SearchRoleResponse.list:type_name -> backend.operation.AddRoleRequest
-	6,  // 3: backend.operation.UserAuth.roles:type_name -> backend.operation.UserRole
-	6,  // 4: backend.operation.AddSystemUser.roles:type_name -> backend.operation.UserRole
-	11, // 5: backend.operation.AddSystemUser.is_show:type_name -> backend.operation.IsShow.Kind
-	11, // 6: backend.operation.SearchUserRequest.is_show:type_name -> backend.operation.IsShow.Kind
-	12, // 7: backend.operation.SearchUserRequest.pagination:type_name -> backend.operation.PaginationModel
-	7,  // 8: backend.operation.SearchUserResponse.list:type_name -> backend.operation.AddSystemUser
-	11, // 9: backend.operation.EditIsShowSystemUserRequest.is_show:type_name -> backend.operation.IsShow.Kind
-	10, // [10:10] is the sub-list for method output_type
-	10, // [10:10] is the sub-list for method input_type
-	10, // [10:10] is the sub-list for extension type_name
-	10, // [10:10] is the sub-list for extension extendee
-	0,  // [0:10] is the sub-list for field type_name
+	5,  // 3: backend.operation.UserAuth.roles:type_name -> backend.operation.UserRole
+	5,  // 4: backend.operation.AddSystemUser.roles:type_name -> backend.operation.UserRole
+	14, // 5: backend.operation.AddSystemUser.is_show:type_name -> backend.operation.IsShow.Kind
+	14, // 6: backend.operation.SearchUserRequest.is_show:type_name -> backend.operation.IsShow.Kind
+	15, // 7: backend.operation.SearchUserRequest.pagination:type_name -> backend.operation.PaginationModel
+	6,  // 8: backend.operation.SearchUserResponse.list:type_name -> backend.operation.AddSystemUser
+	14, // 9: backend.operation.IsShowSystemUserRequest.is_show:type_name -> backend.operation.IsShow.Kind
+	14, // 10: backend.operation.AddMenuRequest.is_show:type_name -> backend.operation.IsShow.Kind
+	14, // 11: backend.operation.IsShowSystemMenuRequest.is_show:type_name -> backend.operation.IsShow.Kind
+	15, // 12: backend.operation.SearchMenuRequest.pagination:type_name -> backend.operation.PaginationModel
+	10, // 13: backend.operation.SearchMenuResponse.list:type_name -> backend.operation.AddMenuRequest
+	14, // [14:14] is the sub-list for method output_type
+	14, // [14:14] is the sub-list for method input_type
+	14, // [14:14] is the sub-list for extension type_name
+	14, // [14:14] is the sub-list for extension extendee
+	0,  // [0:14] is the sub-list for field type_name
 }
 
 func init() { file_backend_operation_system_proto_init() }
@@ -1026,7 +1338,7 @@ func file_backend_operation_system_proto_init() {
 			}
 		}
 		file_backend_operation_system_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*AddMenuRequest); i {
+			switch v := v.(*SystemToken); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1038,7 +1350,7 @@ func file_backend_operation_system_proto_init() {
 			}
 		}
 		file_backend_operation_system_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*SystemToken); i {
+			switch v := v.(*UserAuth); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1050,7 +1362,7 @@ func file_backend_operation_system_proto_init() {
 			}
 		}
 		file_backend_operation_system_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*UserAuth); i {
+			switch v := v.(*UserRole); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1062,7 +1374,7 @@ func file_backend_operation_system_proto_init() {
 			}
 		}
 		file_backend_operation_system_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*UserRole); i {
+			switch v := v.(*AddSystemUser); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1074,7 +1386,7 @@ func file_backend_operation_system_proto_init() {
 			}
 		}
 		file_backend_operation_system_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*AddSystemUser); i {
+			switch v := v.(*SearchUserRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1086,7 +1398,7 @@ func file_backend_operation_system_proto_init() {
 			}
 		}
 		file_backend_operation_system_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*SearchUserRequest); i {
+			switch v := v.(*SearchUserResponse); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1098,7 +1410,7 @@ func file_backend_operation_system_proto_init() {
 			}
 		}
 		file_backend_operation_system_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*SearchUserResponse); i {
+			switch v := v.(*IsShowSystemUserRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1110,7 +1422,43 @@ func file_backend_operation_system_proto_init() {
 			}
 		}
 		file_backend_operation_system_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*EditIsShowSystemUserRequest); i {
+			switch v := v.(*AddMenuRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_backend_operation_system_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*IsShowSystemMenuRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_backend_operation_system_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*SearchMenuRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_backend_operation_system_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*SearchMenuResponse); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1128,7 +1476,7 @@ func file_backend_operation_system_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_backend_operation_system_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   11,
+			NumMessages:   14,
 			NumExtensions: 0,
 			NumServices:   0,
 		},

+ 0 - 4
store/kptstore/rw_store.go

@@ -3,12 +3,9 @@ package kptstore
 import (
 	"kpt-tmr-group/config"
 	"kpt-tmr-group/pkg/logger/logrus"
-	"kpt-tmr-group/pkg/logger/zaplog"
 	"kpt-tmr-group/pkg/xerr"
 	"time"
 
-	"go.uber.org/zap"
-
 	"gorm.io/driver/mysql"
 	"gorm.io/gorm"
 	"gorm.io/gorm/logger"
@@ -50,7 +47,6 @@ func MustNewStore(cfg *config.AppConfig) *DB {
 		&gorm.Config{Logger: newLogger},
 	)
 	if err != nil {
-		zaplog.Error("MustNewStore", zap.String("Err", err.Error()), zap.Any("KptEventDSNRW", cfg.StoreSetting.KptEventDSNRW))
 		panic(xerr.WithStack(err))
 	}