41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|