😎代码清理

This commit is contained in:
zuohuaijun 2025-04-07 20:49:56 +08:00
parent 629ae95659
commit 9845228dbf
3 changed files with 10 additions and 11 deletions

View File

@ -24,7 +24,7 @@ public class SysPrintService : IDynamicApiController, ITransient
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[DisplayName("获取打印模板列表")]
[DisplayName("获取打印模板列表")]
public async Task<SqlSugarPagedList<SysPrint>> Page(PagePrintInput input)
{
return await _sysPrintRep.AsQueryable()
@ -38,7 +38,7 @@ public class SysPrintService : IDynamicApiController, ITransient
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
[DisplayName("获取打印模板")]
[DisplayName("获取打印模板")]
public async Task<SysPrint> GetPrint(string name)
{
return await _sysPrintRep.GetFirstAsync(u => u.Name == name);
@ -50,7 +50,7 @@ public class SysPrintService : IDynamicApiController, ITransient
/// <param name="input"></param>
/// <returns></returns>
[ApiDescriptionSettings(Name = "Add"), HttpPost]
[DisplayName("增加打印模板")]
[DisplayName("增加打印模板")]
public async Task AddPrint(AddPrintInput input)
{
var isExist = await _sysPrintRep.IsAnyAsync(u => u.Name == input.Name);
@ -65,7 +65,7 @@ public class SysPrintService : IDynamicApiController, ITransient
/// <param name="input"></param>
/// <returns></returns>
[ApiDescriptionSettings(Name = "Update"), HttpPost]
[DisplayName("更新打印模板")]
[DisplayName("更新打印模板")]
public async Task UpdatePrint(UpdatePrintInput input)
{
var isExist = await _sysPrintRep.IsAnyAsync(u => u.Name == input.Name && u.Id != input.Id);
@ -75,7 +75,7 @@ public class SysPrintService : IDynamicApiController, ITransient
}
/// <summary>
/// 复制打印模板
/// 复制打印模板 🖨️
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
@ -97,7 +97,7 @@ public class SysPrintService : IDynamicApiController, ITransient
/// <param name="input"></param>
/// <returns></returns>
[ApiDescriptionSettings(Name = "Delete"), HttpPost]
[DisplayName("删除打印模板")]
[DisplayName("删除打印模板")]
public async Task DeletePrint(DeletePrintInput input)
{
await _sysPrintRep.DeleteByIdAsync(input.Id);

View File

@ -79,7 +79,7 @@ export const SysPrintApiAxiosParamCreator = function (configuration?: Configurat
},
/**
*
* @summary
* @summary 🖨
* @param {DeletePrintInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -343,7 +343,7 @@ export const SysPrintApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary
* @summary 🖨
* @param {DeletePrintInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -432,7 +432,7 @@ export const SysPrintApiFactory = function (configuration?: Configuration, baseP
},
/**
*
* @summary
* @summary 🖨
* @param {DeletePrintInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -503,7 +503,7 @@ export class SysPrintApi extends BaseAPI {
}
/**
*
* @summary
* @summary 🖨
* @param {DeletePrintInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}

View File

@ -161,7 +161,6 @@ const handleCopy = async (row: any) => {
ElMessage.success('复制成功');
};
//
const handleDelete = (row: any) => {
ElMessageBox.confirm(`确定删除打印模板:【${row.name}】?`, '提示', {