/***********************************************************************
|
* Project: baifenBinfa
|
* ProjectName: 百分兵法管理系统
|
* Web: http://chuanyin.com
|
* Author:
|
* Email:
|
* CreateTime: 202403/02
|
* Description: 暂无
|
***********************************************************************/
|
|
using System;
|
using System.Collections.Generic;
|
using System.Linq.Expressions;
|
using System.Threading.Tasks;
|
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.FromBody;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.UI;
|
using SqlSugar;
|
|
namespace CoreCms.Net.IServices
|
{
|
/// <summary>
|
/// 表单 服务工厂接口
|
/// </summary>
|
public interface ICoreCmsFormServices : IBaseServices<CoreCmsForm>
|
{
|
/// <summary>
|
/// 事务重写异步插入方法
|
/// </summary>
|
/// <param name="entity"></param>
|
/// <returns></returns>
|
Task<AdminUiCallBack> InsertAsync(FMForm entity);
|
|
/// <summary>
|
/// 重写异步更新方法
|
/// </summary>
|
/// <param name="entity"></param>
|
/// <returns></returns>
|
Task<AdminUiCallBack> UpdateAsync(FMForm entity);
|
|
/// <summary>
|
/// 重写根据条件查询分页数据
|
/// </summary>
|
/// <param name="predicate">判断集合</param>
|
/// <param name="orderByType">排序方式</param>
|
/// <param name="pageIndex">当前页面索引</param>
|
/// <param name="pageSize">分布大小</param>
|
/// <param name="orderByExpression"></param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <returns></returns>
|
Task<IPageList<CoreCmsForm>> QueryPageAsync(
|
Expression<Func<CoreCmsForm, bool>> predicate,
|
Expression<Func<CoreCmsForm, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
int pageSize = 20, bool blUseNoLock = false);
|
|
|
/// <summary>
|
/// 获取form表单详情
|
/// </summary>
|
/// <param name="id"></param>
|
/// <param name="token"></param>
|
/// <param name="noToken"></param>
|
/// <returns></returns>
|
Task<WebApiCallBack> GetFormInfo(int id, string token, bool noToken = false);
|
|
/// <summary>
|
/// 提交表单
|
/// </summary>
|
/// <param name="entity"></param>
|
/// <returns></returns>
|
Task<WebApiCallBack> AddSubmit(FmAddSubmit entity);
|
|
/// <summary>
|
/// 重写删除指定ID的数据
|
/// </summary>
|
/// <param name="id"></param>
|
/// <returns></returns>
|
Task<AdminUiCallBack> DeleteByIdAsync(int id);
|
|
}
|
}
|