2025-10-23 09:54:36 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
// T4模板文件:基础接口类
|
|
|
|
|
|
// 此代码由T4模板自动生成
|
|
|
|
|
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
using APT.Infrastructure.Core;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using APT.Utility;
|
|
|
|
|
|
using APT.Infrastructure.Api;
|
|
|
|
|
|
using APT.BaseData.Domain.ApiModel.PF;
|
|
|
|
|
|
namespace APT.OP.WebApi.Controllers.Api
|
|
|
|
|
|
{
|
2025-09-23 15:56:16 +08:00
|
|
|
|
using APT.BaseData.Domain.Entities.OP;
|
2025-10-23 09:54:36 +08:00
|
|
|
|
#region Alluser-用户表(租户平台)
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用户表(租户平台)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/Alluser")]
|
|
|
|
|
|
public partial class AlluserController : AuthorizeApiController<T_OP_ALLUSER>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_ALLUSER>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_ALLUSER>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_ALLUSER> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_ALLUSER> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_ALLUSER entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_ALLUSER> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_ALLUSER> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region BillingRule-计费规则表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 计费规则表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/BillingRule")]
|
|
|
|
|
|
public partial class BillingRuleController : AuthorizeApiController<T_OP_BILLING_RULE>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_BILLING_RULE>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_BILLING_RULE>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_BILLING_RULE> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_BILLING_RULE> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_BILLING_RULE entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_BILLING_RULE> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_BILLING_RULE> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region BillingRuleVersion-计费规则子表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 计费规则子表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/BillingRuleVersion")]
|
|
|
|
|
|
public partial class BillingRuleVersionController : AuthorizeApiController<T_OP_BILLING_RULE_VERSION>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_BILLING_RULE_VERSION>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_BILLING_RULE_VERSION>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_BILLING_RULE_VERSION> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_BILLING_RULE_VERSION> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_BILLING_RULE_VERSION entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_BILLING_RULE_VERSION> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_BILLING_RULE_VERSION> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region ChargeTimeSet-充电时长配置
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 充电时长配置
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/ChargeTimeSet")]
|
|
|
|
|
|
public partial class ChargeTimeSetController : AuthorizeApiController<T_OP_CHARGE_TIME_SET>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_CHARGE_TIME_SET>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_CHARGE_TIME_SET>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_CHARGE_TIME_SET> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_CHARGE_TIME_SET> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_CHARGE_TIME_SET entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_CHARGE_TIME_SET> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_CHARGE_TIME_SET> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Client-客户表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 客户表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/Client")]
|
|
|
|
|
|
public partial class ClientController : AuthorizeApiController<T_OP_CLIENT>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_CLIENT>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_CLIENT>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_CLIENT> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_CLIENT> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_CLIENT entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_CLIENT> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_CLIENT> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region ClinetOpenid-客户表OpenId
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 客户表OpenId
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/ClinetOpenid")]
|
|
|
|
|
|
public partial class ClinetOpenidController : AuthorizeApiController<T_OP_CLINET_OPENID>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_CLINET_OPENID>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_CLINET_OPENID>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_CLINET_OPENID> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_CLINET_OPENID> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_CLINET_OPENID entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_CLINET_OPENID> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_CLINET_OPENID> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region CommonQuestion-常见问题
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 常见问题
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/CommonQuestion")]
|
|
|
|
|
|
public partial class CommonQuestionController : AuthorizeApiController<T_OP_COMMON_QUESTION>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_COMMON_QUESTION>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_COMMON_QUESTION>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_COMMON_QUESTION> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_COMMON_QUESTION> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_COMMON_QUESTION entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_COMMON_QUESTION> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_COMMON_QUESTION> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region FileFirmware-充电桩固件表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 充电桩固件表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/FileFirmware")]
|
|
|
|
|
|
public partial class FileFirmwareController : AuthorizeApiController<T_OP_FILE_FIRMWARE>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_FILE_FIRMWARE>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_FILE_FIRMWARE>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_FILE_FIRMWARE> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_FILE_FIRMWARE> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_FILE_FIRMWARE entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_FILE_FIRMWARE> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_FILE_FIRMWARE> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Member-会员表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 会员表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/Member")]
|
|
|
|
|
|
public partial class MemberController : AuthorizeApiController<T_OP_MEMBER>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_MEMBER>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_MEMBER>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_MEMBER> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_MEMBER> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_MEMBER entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_MEMBER> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_MEMBER> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Menu-菜单表(租户平台)
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 菜单表(租户平台)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/Menu")]
|
|
|
|
|
|
public partial class MenuController : AuthorizeTreeApiController<T_OP_MENU>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_MENU>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_MENU>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_MENU> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_MENU> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_MENU entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_MENU> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_MENU> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得树形实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("TreeData")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<TreeNode<T_OP_MENU>>> TreeData([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitTreeOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Notice-公告表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 公告表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/Notice")]
|
|
|
|
|
|
public partial class NoticeController : AuthorizeApiController<T_OP_NOTICE>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_NOTICE>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_NOTICE>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_NOTICE> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_NOTICE> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_NOTICE entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_NOTICE> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_NOTICE> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region NoticeDetail-公告内容
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 公告内容
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/NoticeDetail")]
|
|
|
|
|
|
public partial class NoticeDetailController : AuthorizeApiController<T_OP_NOTICE_DETAIL>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_NOTICE_DETAIL>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_NOTICE_DETAIL>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_NOTICE_DETAIL> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_NOTICE_DETAIL> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_NOTICE_DETAIL entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_NOTICE_DETAIL> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_NOTICE_DETAIL> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region PeakValleyConfig-峰谷配置表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 峰谷配置表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/PeakValleyConfig")]
|
|
|
|
|
|
public partial class PeakValleyConfigController : AuthorizeApiController<T_OP_PEAK_VALLEY_CONFIG>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_PEAK_VALLEY_CONFIG>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_PEAK_VALLEY_CONFIG>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_PEAK_VALLEY_CONFIG> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_PEAK_VALLEY_CONFIG> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_PEAK_VALLEY_CONFIG entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_PEAK_VALLEY_CONFIG> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_PEAK_VALLEY_CONFIG> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region RechargeCard-充值卡
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 充值卡
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/RechargeCard")]
|
|
|
|
|
|
public partial class RechargeCardController : AuthorizeApiController<T_OP_RECHARGE_CARD>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_RECHARGE_CARD>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_RECHARGE_CARD>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_RECHARGE_CARD> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_RECHARGE_CARD> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_RECHARGE_CARD entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_RECHARGE_CARD> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_RECHARGE_CARD> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region RechargeOrder-充值订单
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 充值订单
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/RechargeOrder")]
|
|
|
|
|
|
public partial class RechargeOrderController : AuthorizeApiController<T_OP_RECHARGE_ORDER>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_RECHARGE_ORDER>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_RECHARGE_ORDER>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_RECHARGE_ORDER> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_RECHARGE_ORDER> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_RECHARGE_ORDER entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_RECHARGE_ORDER> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_RECHARGE_ORDER> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region RechargeSetting-充值金额配置
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 充值金额配置
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/RechargeSetting")]
|
|
|
|
|
|
public partial class RechargeSettingController : AuthorizeApiController<T_OP_RECHARGE_SETTING>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_RECHARGE_SETTING>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_RECHARGE_SETTING>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_RECHARGE_SETTING> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_RECHARGE_SETTING> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_RECHARGE_SETTING entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_RECHARGE_SETTING> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_RECHARGE_SETTING> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region RfidCard-RFID卡
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// RFID卡
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/RfidCard")]
|
|
|
|
|
|
public partial class RfidCardController : AuthorizeApiController<T_OP_RFID_CARD>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_RFID_CARD>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_RFID_CARD>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_RFID_CARD> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_RFID_CARD> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_RFID_CARD entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_RFID_CARD> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_RFID_CARD> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region RoleMenu-租户权限表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 租户权限表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/RoleMenu")]
|
|
|
|
|
|
public partial class RoleMenuController : AuthorizeApiController<T_OP_ROLE_MENU>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_ROLE_MENU>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_ROLE_MENU>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_ROLE_MENU> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_ROLE_MENU> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_ROLE_MENU entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_ROLE_MENU> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_ROLE_MENU> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Tenant-租户表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 租户表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/Tenant")]
|
|
|
|
|
|
public partial class TenantController : AuthorizeApiController<T_OP_TENANT>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_TENANT>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_TENANT>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_TENANT> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_TENANT> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_TENANT entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_TENANT> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_TENANT> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region TenantDbConn-租户数据库表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 租户数据库表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/TenantDbConn")]
|
|
|
|
|
|
public partial class TenantDbConnController : AuthorizeApiController<T_OP_TENANT_DB_CONN>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_TENANT_DB_CONN>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_TENANT_DB_CONN>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_TENANT_DB_CONN> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_TENANT_DB_CONN> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_TENANT_DB_CONN entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_TENANT_DB_CONN> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_TENANT_DB_CONN> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region TenantDomain-租户域名表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 租户域名表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/TenantDomain")]
|
|
|
|
|
|
public partial class TenantDomainController : AuthorizeApiController<T_OP_TENANT_DOMAIN>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_TENANT_DOMAIN>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_TENANT_DOMAIN>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_TENANT_DOMAIN> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_TENANT_DOMAIN> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_TENANT_DOMAIN entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_TENANT_DOMAIN> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_TENANT_DOMAIN> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region TenantExpiration-租户租期表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 租户租期表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/TenantExpiration")]
|
|
|
|
|
|
public partial class TenantExpirationController : AuthorizeApiController<T_OP_TENANT_EXPIRATION>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_TENANT_EXPIRATION>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_TENANT_EXPIRATION>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_TENANT_EXPIRATION> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_TENANT_EXPIRATION> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_TENANT_EXPIRATION entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_TENANT_EXPIRATION> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_TENANT_EXPIRATION> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region User-用户表(租户平台)
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用户表(租户平台)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/User")]
|
|
|
|
|
|
public partial class UserController : AuthorizeApiController<T_OP_USER>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_USER>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_USER>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_USER> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_USER> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_USER entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_USER> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_USER> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Version-版本升级表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 版本升级表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/Version")]
|
|
|
|
|
|
public partial class VersionController : AuthorizeApiController<T_OP_VERSION>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_VERSION>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_VERSION>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_VERSION> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_VERSION> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_VERSION entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_VERSION> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_VERSION> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region VersionMenu-菜单版本升级表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 菜单版本升级表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/VersionMenu")]
|
|
|
|
|
|
public partial class VersionMenuController : AuthorizeApiController<T_OP_VERSION_MENU>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_VERSION_MENU>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_VERSION_MENU>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_VERSION_MENU> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_VERSION_MENU> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_VERSION_MENU entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_VERSION_MENU> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_VERSION_MENU> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region VersionTenant-租户版本升级表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 租户版本升级表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/OP/VersionTenant")]
|
|
|
|
|
|
public partial class VersionTenantController : AuthorizeApiController<T_OP_VERSION_TENANT>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_VERSION_TENANT>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_OP_VERSION_TENANT>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_VERSION_TENANT> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_OP_VERSION_TENANT> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_OP_VERSION_TENANT entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_OP_VERSION_TENANT> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_OP_VERSION_TENANT> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|