优化分层结构,添加常量

This commit is contained in:
chenchun
2023-01-02 14:29:16 +08:00
parent ea35871aba
commit 1ff709e6f8
47 changed files with 191 additions and 627 deletions

View File

@@ -9,7 +9,7 @@ using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.Service.Base;
using Yi.Framework.Interface.RABC;
using Yi.Framework.DTOModel.Base.Dto;
using Yi.Framework.DtoModel.Base.Dto;
namespace Yi.Framework.Service.RABC
{

View File

@@ -3,7 +3,8 @@ using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Exceptions;
using Yi.Framework.DTOModel.RABC.Student;
using Yi.Framework.DtoModel.RABC.Student;
using Yi.Framework.DtoModel.RABC.Student.ConstConfig;
using Yi.Framework.Interface.RABC;
using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
@@ -24,11 +25,11 @@ namespace Yi.Framework.Service.RABC
public void GetError()
{
throw new ApplicationException("查询错误");
throw new ApplicationException(StudentConst.);
}
public void GetError2()
{
throw new UserFriendlyException("友好错误");
throw new UserFriendlyException(StudentConst.);
}
/// <summary>

View File

@@ -12,7 +12,7 @@ using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.Service.Base;
using Yi.Framework.Interface.RABC;
using Yi.Framework.DTOModel.Base.Dto;
using Yi.Framework.DtoModel.Base.Dto;
namespace Yi.Framework.Service.RABC
{