feat: rbac迁移完成,并已部署至dev服务器
This commit is contained in:
@@ -23,6 +23,47 @@ func NewSystemServiceServer(svcCtx *svc.ServiceContext) *SystemServiceServer {
|
||||
}
|
||||
}
|
||||
|
||||
// --- 用户 ---
|
||||
func (s *SystemServiceServer) GetUserById(ctx context.Context, in *system.GetUserByIdReq) (*system.GetUserByIdResp, error) {
|
||||
l := logic.NewGetUserByIdLogic(ctx, s.svcCtx)
|
||||
return l.GetUserById(in)
|
||||
}
|
||||
|
||||
func (s *SystemServiceServer) GetUserByOpenId(ctx context.Context, in *system.GetUserByOpenIdReq) (*system.GetUserByOpenIdResp, error) {
|
||||
l := logic.NewGetUserByOpenIdLogic(ctx, s.svcCtx)
|
||||
return l.GetUserByOpenId(in)
|
||||
}
|
||||
|
||||
func (s *SystemServiceServer) LoginByAccount(ctx context.Context, in *system.LoginByAccountReq) (*system.LoginByAccountResp, error) {
|
||||
l := logic.NewLoginByAccountLogic(ctx, s.svcCtx)
|
||||
return l.LoginByAccount(in)
|
||||
}
|
||||
|
||||
func (s *SystemServiceServer) CreateUser(ctx context.Context, in *system.CreateUserReq) (*system.CreateUserResp, error) {
|
||||
l := logic.NewCreateUserLogic(ctx, s.svcCtx)
|
||||
return l.CreateUser(in)
|
||||
}
|
||||
|
||||
func (s *SystemServiceServer) UpdateUser(ctx context.Context, in *system.UpdateUserReq) (*system.CommonResp, error) {
|
||||
l := logic.NewUpdateUserLogic(ctx, s.svcCtx)
|
||||
return l.UpdateUser(in)
|
||||
}
|
||||
|
||||
func (s *SystemServiceServer) GetUserList(ctx context.Context, in *system.GetUserListReq) (*system.GetUserListResp, error) {
|
||||
l := logic.NewGetUserListLogic(ctx, s.svcCtx)
|
||||
return l.GetUserList(in)
|
||||
}
|
||||
|
||||
func (s *SystemServiceServer) DeleteUser(ctx context.Context, in *system.DeleteUserReq) (*system.CommonResp, error) {
|
||||
l := logic.NewDeleteUserLogic(ctx, s.svcCtx)
|
||||
return l.DeleteUser(in)
|
||||
}
|
||||
|
||||
func (s *SystemServiceServer) ResetPassword(ctx context.Context, in *system.ResetPasswordReq) (*system.CommonResp, error) {
|
||||
l := logic.NewResetPasswordLogic(ctx, s.svcCtx)
|
||||
return l.ResetPassword(in)
|
||||
}
|
||||
|
||||
// --- 角色 ---
|
||||
func (s *SystemServiceServer) GetRolesByUserId(ctx context.Context, in *system.GetRolesByUserIdReq) (*system.GetRolesByUserIdResp, error) {
|
||||
l := logic.NewGetRolesByUserIdLogic(ctx, s.svcCtx)
|
||||
@@ -123,6 +164,11 @@ func (s *SystemServiceServer) GetDictList(ctx context.Context, in *system.DictLi
|
||||
}
|
||||
|
||||
// --- 操作日志 ---
|
||||
func (s *SystemServiceServer) CreateOperationRecord(ctx context.Context, in *system.CreateOperationRecordReq) (*system.CommonResp, error) {
|
||||
l := logic.NewCreateOperationRecordLogic(ctx, s.svcCtx)
|
||||
return l.CreateOperationRecord(in)
|
||||
}
|
||||
|
||||
func (s *SystemServiceServer) DeleteOperationRecord(ctx context.Context, in *system.IdsReq) (*system.CommonResp, error) {
|
||||
l := logic.NewDeleteOperationRecordLogic(ctx, s.svcCtx)
|
||||
return l.DeleteOperationRecord(in)
|
||||
|
||||
Reference in New Issue
Block a user