test
This commit is contained in:
40
Ewide.NbzsZheliban/Service/DataService.cs
Normal file
40
Ewide.NbzsZheliban/Service/DataService.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using Ewide.NbzsZheliban.Tools;
|
||||
using Furion.JsonSerialization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Ewide.NbzsZheliban.Service
|
||||
{
|
||||
[ApiDescriptionSettings(Name = "数据接口")]
|
||||
public class DataService : BaseService
|
||||
{
|
||||
private readonly ISqlSugarRepository repository;
|
||||
private readonly SqlSugarClient db;
|
||||
private readonly IJsonSerializerProvider _jsonSerializer;
|
||||
public DataService(ISqlSugarRepository sqlSugarRepository, IJsonSerializerProvider jsonSerializer)
|
||||
{
|
||||
repository = sqlSugarRepository;
|
||||
db = repository.Context;
|
||||
_jsonSerializer = jsonSerializer;
|
||||
}
|
||||
/// <summary>
|
||||
/// 被征收人关联的项目列表
|
||||
/// </summary>
|
||||
/// <param name="args"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("/project/list")]
|
||||
[Microsoft.AspNetCore.Authorization.AllowAnonymous]
|
||||
public async Task<dynamic> PrjList([FromBody] JObject args)
|
||||
{
|
||||
var cardno = args.GetJsonIntValue("cardno", isThrowExp: true);
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user