File tree Expand file tree Collapse file tree
src/modules/admin/ZhonTai.Admin/GrpcServices
ui/zhontai.ui.admin.vue3/src/views/admin/user/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66namespace ZhonTai . Admin . GrpcServices ;
77
8+ /// <summary>
9+ /// 接口Grpc服务
10+ /// </summary>
811public class ApiGrpcService : IApiGrpcService
912{
1013 private readonly IApiRepository _apiRepository ;
@@ -14,6 +17,11 @@ public ApiGrpcService(IApiRepository apiRepository)
1417 _apiRepository = apiRepository ;
1518 }
1619
20+ /// <summary>
21+ /// 获取Api列表
22+ /// </summary>
23+ /// <param name="context"></param>
24+ /// <returns></returns>
1725 public async Task < GrpcOutput < List < ApiGrpcOutput > > > GetApiList ( CallContext context = default )
1826 {
1927 var data = await _apiRepository . Select . ToListAsync < ApiGrpcOutput > ( ) ;
Original file line number Diff line number Diff line change 88
99namespace ZhonTai . Admin . GrpcServices ;
1010
11+ /// <summary>
12+ /// 操作日志Grpc服务
13+ /// </summary>
1114public class OprationLogGrpcService : IOprationLogGrpcService
1215{
1316 private readonly IOperationLogService _operationLogService ;
@@ -17,6 +20,12 @@ public OprationLogGrpcService(IOperationLogService operationLogService)
1720 _operationLogService = operationLogService ;
1821 }
1922
23+ /// <summary>
24+ /// 添加操作日志
25+ /// </summary>
26+ /// <param name="input"></param>
27+ /// <param name="context"></param>
28+ /// <returns></returns>
2029 public async Task < ProtoLong > AddAsync ( OperationLogAddGrpcInput input , CallContext context = default )
2130 {
2231 return await _operationLogService . AddAsync ( input . Adapt < OperationLogAddInput > ( ) ) ;
Original file line number Diff line number Diff line change 77
88namespace ZhonTai . Admin . GrpcServices ;
99
10+ /// <summary>
11+ /// 用户Grpc服务
12+ /// </summary>
1013public class UserGrpcService : IUserGrpcService
1114{
1215 private readonly IUserService _userService ;
@@ -16,11 +19,22 @@ public UserGrpcService(IUserService userService)
1619 _userService = userService ;
1720 }
1821
22+ /// <summary>
23+ /// 获得数据权限
24+ /// </summary>
25+ /// <param name="apiPath"></param>
26+ /// <param name="context"></param>
27+ /// <returns></returns>
1928 public async Task GetDataPermissionAsync ( ProtoString apiPath , CallContext context = default )
2029 {
2130 await _userService . GetDataPermissionAsync ( apiPath ) ;
2231 }
2332
33+ /// <summary>
34+ /// 获得用户权限
35+ /// </summary>
36+ /// <param name="context"></param>
37+ /// <returns></returns>
2438 public async Task < UserGetPermissionGrpcOutput > GetPermissionAsync ( CallContext context = default )
2539 {
2640 var userPermission = await _userService . GetPermissionAsync ( ) ;
Original file line number Diff line number Diff line change 77 draggable
88 :close-on-click-modal =" false"
99 :close-on-press-escape =" false"
10+ class =" my-dialog"
1011 width =" 880px"
1112 >
1213 <div style =" padding : 0px 0px 8px 8px ; background-color : var (--ba-bg-color )" >
@@ -202,8 +203,10 @@ defineExpose({
202203})
203204 </script >
204205
205- <style scoped lang="scss">
206- :deep(.el-dialog__body ) {
207- padding : 5px 10px ;
206+ <style lang="scss">
207+ .my-dialog {
208+ .el-dialog__body {
209+ padding : 0px !important ;
210+ }
208211}
209212 </style >
You can’t perform that action at this time.
0 commit comments