钉钉群配置

booking_auth_dev
wanghaomei 2 years ago
parent 9497412b90
commit 2cc36f4e0f

@ -0,0 +1,31 @@
using System;
using SqlSugar;
using System.ComponentModel;
using Myshipping.Core.Entity;
namespace Myshipping.Application.Entity
{
/// <summary>
/// 钉钉客服通知群配置
/// </summary>
[SugarTable("djy_dingtalk_group_config")]
[Description("钉钉客服通知群配置")]
public class DjyDingtalkGroupConfig : DEntityBase
{
/// <summary>
/// 代码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 说明
/// </summary>
public string Desp { get; set; }
/// <summary>
/// Url
/// </summary>
public string Url { get; set; }
/// <summary>
/// 关键
/// </summary>
public string Keyword { get; set; }
}
}

@ -7867,6 +7867,156 @@
备注 备注
</summary> </summary>
</member> </member>
<member name="T:Myshipping.Core.Service.DjyDingtalkGroupConfigService">
<summary>
钉钉客服通知群配置服务
</summary>
</member>
<member name="M:Myshipping.Core.Service.DjyDingtalkGroupConfigService.Page(Myshipping.Core.Service.QueryDjyDingtalkGroupConfigInput)">
<summary>
分页查询钉钉客服通知群配置
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.DjyDingtalkGroupConfigService.Add(Myshipping.Core.Service.AddDjyDingtalkGroupConfigInput)">
<summary>
增加钉钉客服通知群配置
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.DjyDingtalkGroupConfigService.Update(Myshipping.Core.Service.UpdateDjyDingtalkGroupConfigInput)">
<summary>
更新钉钉客服通知群配置
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.DjyDingtalkGroupConfigService.Delete(Myshipping.Core.Service.GetDjyDingtalkGroupConfigInput)">
<summary>
删除钉钉客服通知群配置
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.DjyDingtalkGroupConfigService.Get(Myshipping.Core.Service.GetDjyDingtalkGroupConfigInput)">
<summary>
获取钉钉客服通知群配置
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="T:Myshipping.Core.Service.DjyDingtalkGroupConfigInput">
<summary>
钉钉客服通知群配置输入参数
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyDingtalkGroupConfigInput.Code">
<summary>
代码
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyDingtalkGroupConfigInput.Desp">
<summary>
说明
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyDingtalkGroupConfigInput.Url">
<summary>
Url
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyDingtalkGroupConfigInput.Keyword">
<summary>
关键
</summary>
</member>
<member name="T:Myshipping.Core.Service.AddDjyDingtalkGroupConfigInput">
<summary>
钉钉客服通知群配置新增输入参数
</summary>
</member>
<member name="T:Myshipping.Core.Service.UpdateDjyDingtalkGroupConfigInput">
<summary>
钉钉客服通知群配置修改输入参数
</summary>
</member>
<member name="P:Myshipping.Core.Service.UpdateDjyDingtalkGroupConfigInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="T:Myshipping.Core.Service.GetDjyDingtalkGroupConfigInput">
<summary>
钉钉客服通知群配置获取(删除)输入参数
</summary>
</member>
<member name="P:Myshipping.Core.Service.GetDjyDingtalkGroupConfigInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="T:Myshipping.Core.Service.QueryDjyDingtalkGroupConfigInput">
<summary>
钉钉客服通知群配置查询输入参数
</summary>
</member>
<member name="P:Myshipping.Core.Service.QueryDjyDingtalkGroupConfigInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:Myshipping.Core.Service.QueryDjyDingtalkGroupConfigInput.Code">
<summary>
代码
</summary>
</member>
<member name="P:Myshipping.Core.Service.QueryDjyDingtalkGroupConfigInput.Desp">
<summary>
说明
</summary>
</member>
<member name="P:Myshipping.Core.Service.QueryDjyDingtalkGroupConfigInput.Url">
<summary>
Url
</summary>
</member>
<member name="P:Myshipping.Core.Service.QueryDjyDingtalkGroupConfigInput.Keyword">
<summary>
关键
</summary>
</member>
<member name="T:Myshipping.Core.Service.DjyDingtalkGroupConfigOutput">
<summary>
钉钉客服通知群配置输出参数
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyDingtalkGroupConfigOutput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyDingtalkGroupConfigOutput.Code">
<summary>
代码
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyDingtalkGroupConfigOutput.Desp">
<summary>
说明
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyDingtalkGroupConfigOutput.Url">
<summary>
Url
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyDingtalkGroupConfigOutput.Keyword">
<summary>
关键
</summary>
</member>
<member name="T:Myshipping.Core.Service.DjyEdiSettingService"> <member name="T:Myshipping.Core.Service.DjyEdiSettingService">
<summary> <summary>
EDI参数设置服务 EDI参数设置服务
@ -14462,6 +14612,31 @@
<param name="node"></param> <param name="node"></param>
<param name="childNodeLists"></param> <param name="childNodeLists"></param>
</member> </member>
<member name="T:Myshipping.Application.Entity.DjyDingtalkGroupConfig">
<summary>
钉钉客服通知群配置
</summary>
</member>
<member name="P:Myshipping.Application.Entity.DjyDingtalkGroupConfig.Code">
<summary>
代码
</summary>
</member>
<member name="P:Myshipping.Application.Entity.DjyDingtalkGroupConfig.Desp">
<summary>
说明
</summary>
</member>
<member name="P:Myshipping.Application.Entity.DjyDingtalkGroupConfig.Url">
<summary>
Url
</summary>
</member>
<member name="P:Myshipping.Application.Entity.DjyDingtalkGroupConfig.Keyword">
<summary>
关键
</summary>
</member>
<member name="T:Myshipping.Application.Entity.DjyUserMailAccount"> <member name="T:Myshipping.Application.Entity.DjyUserMailAccount">
<summary> <summary>
用户邮箱账号 用户邮箱账号

@ -0,0 +1,116 @@
using Myshipping.Core;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using System.Threading.Tasks;
using Myshipping.Application.Entity;
using Microsoft.Extensions.Logging;
using Furion.FriendlyException;
namespace Myshipping.Core.Service
{
/// <summary>
/// 钉钉客服通知群配置服务
/// </summary>
[ApiDescriptionSettings(Name = "DjyDingtalkGroupConfig", Order = 1)]
public class DjyDingtalkGroupConfigService : IDjyDingtalkGroupConfigService, IDynamicApiController, ITransient
{
private readonly SqlSugarRepository<DjyDingtalkGroupConfig> _rep;
private readonly ILogger<DjyDingtalkGroupConfig> _logger;
public DjyDingtalkGroupConfigService(SqlSugarRepository<DjyDingtalkGroupConfig> rep, ILogger<DjyDingtalkGroupConfig> logger)
{
_rep = rep;
_logger = logger;
}
/// <summary>
/// 分页查询钉钉客服通知群配置
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/DjyDingtalkGroupConfig/page")]
public async Task<dynamic> Page([FromQuery] QueryDjyDingtalkGroupConfigInput input)
{
var entities = await _rep.AsQueryable()
.WhereIF(!string.IsNullOrWhiteSpace(input.Code), u => u.Code == input.Code)
.WhereIF(!string.IsNullOrWhiteSpace(input.Desp), u => u.Desp.Contains(input.Desp.Trim()))
.WhereIF(!string.IsNullOrWhiteSpace(input.Keyword), u => u.Keyword.Contains(input.Keyword.Trim()))
.ToPagedListAsync(input.PageNo, input.PageSize);
return entities.XnPagedResult();
}
/// <summary>
/// 增加钉钉客服通知群配置
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/DjyDingtalkGroupConfig/add")]
public async Task Add(AddDjyDingtalkGroupConfigInput input)
{
var cc = _rep.Count(x => x.Code == input.Code);
if (cc > 0)
{
throw Oops.Bah("代码重复");
}
var entity = input.Adapt<DjyDingtalkGroupConfig>();
await _rep.InsertAsync(entity);
}
/// <summary>
/// 更新钉钉客服通知群配置
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/DjyDingtalkGroupConfig/edit")]
public async Task Update(UpdateDjyDingtalkGroupConfigInput input)
{
var cc = _rep.Count(x => x.Code == input.Code && x.Id != input.Id);
if (cc > 0)
{
throw Oops.Bah("代码重复");
}
var entity = input.Adapt<DjyDingtalkGroupConfig>();
await _rep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync();
}
/// <summary>
/// 删除钉钉客服通知群配置
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/DjyDingtalkGroupConfig/delete")]
public async Task Delete(GetDjyDingtalkGroupConfigInput input)
{
var entity = await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
await _rep.DeleteAsync(entity);
}
/// <summary>
/// 获取钉钉客服通知群配置
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/DjyDingtalkGroupConfig/detail")]
public async Task<DjyDingtalkGroupConfig> Get([FromQuery] GetDjyDingtalkGroupConfigInput input)
{
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
}
///// <summary>
///// 获取钉钉客服通知群配置列表
///// </summary>
///// <param name="input"></param>
///// <returns></returns>
//[HttpGet("/DjyDingtalkGroupConfig/list")]
//public async Task<dynamic> List([FromQuery] QueryDjyDingtalkGroupConfigInput input)
//{
// return await _rep.ToListAsync();
//}
}
}

@ -0,0 +1,98 @@
using Myshipping.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace Myshipping.Core.Service
{
/// <summary>
/// 钉钉客服通知群配置输入参数
/// </summary>
public class DjyDingtalkGroupConfigInput
{
/// <summary>
/// 代码
/// </summary>
public virtual string Code { get; set; }
/// <summary>
/// 说明
/// </summary>
public virtual string Desp { get; set; }
/// <summary>
/// Url
/// </summary>
public virtual string Url { get; set; }
/// <summary>
/// 关键
/// </summary>
public virtual string Keyword { get; set; }
}
/// <summary>
/// 钉钉客服通知群配置新增输入参数
/// </summary>
public class AddDjyDingtalkGroupConfigInput : DjyDingtalkGroupConfigInput
{
}
/// <summary>
/// 钉钉客服通知群配置修改输入参数
/// </summary>
public class UpdateDjyDingtalkGroupConfigInput : DjyDingtalkGroupConfigInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
/// <summary>
/// 钉钉客服通知群配置获取(删除)输入参数
/// </summary>
public class GetDjyDingtalkGroupConfigInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
/// <summary>
/// 钉钉客服通知群配置查询输入参数
/// </summary>
public class QueryDjyDingtalkGroupConfigInput : PageInputBase
{
/// <summary>
/// 主键Id
/// </summary>
public virtual long Id { get; set; }
/// <summary>
/// 代码
/// </summary>
public virtual string Code { get; set; }
/// <summary>
/// 说明
/// </summary>
public virtual string Desp { get; set; }
/// <summary>
/// Url
/// </summary>
public virtual string Url { get; set; }
/// <summary>
/// 关键
/// </summary>
public virtual string Keyword { get; set; }
}
}

@ -0,0 +1,36 @@
using System;
namespace Myshipping.Core.Service
{
/// <summary>
/// 钉钉客服通知群配置输出参数
/// </summary>
public class DjyDingtalkGroupConfigOutput
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 代码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 说明
/// </summary>
public string Desp { get; set; }
/// <summary>
/// Url
/// </summary>
public string Url { get; set; }
/// <summary>
/// 关键
/// </summary>
public string Keyword { get; set; }
}
}

@ -0,0 +1,16 @@
using Myshipping.Core;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Myshipping.Application.Entity;
namespace Myshipping.Core.Service
{
public interface IDjyDingtalkGroupConfigService
{
Task<dynamic> Page([FromQuery] QueryDjyDingtalkGroupConfigInput input);
Task Add(AddDjyDingtalkGroupConfigInput input);
Task Update(UpdateDjyDingtalkGroupConfigInput input);
Task Delete(GetDjyDingtalkGroupConfigInput input);
Task<DjyDingtalkGroupConfig> Get([FromQuery] GetDjyDingtalkGroupConfigInput input);
//Task<dynamic> List([FromQuery] QueryDjyDingtalkGroupConfigInput input);
}
}
Loading…
Cancel
Save