32 lines
975 B
C#
32 lines
975 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Nirvana.Common.ApiBase;
|
|
|
|
namespace YBDevice.NApi.Controllers.Api
|
|
{
|
|
/// <summary>
|
|
/// 分享相关接口
|
|
/// </summary>
|
|
[Route("api/[controller]/[action]")]
|
|
[ApiController]
|
|
public class ShareController : ControllerBase
|
|
{
|
|
private readonly IChildService _childService;
|
|
public ShareController(IChildService childService)
|
|
{
|
|
_childService = childService;
|
|
}
|
|
/// <summary>
|
|
/// 获取儿童信息
|
|
/// </summary>
|
|
/// <param name="familyid">家庭成员ID</param>
|
|
/// <param name="devtype">设备类型</param>
|
|
/// <param name="appid">小程序appid</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public async Task<ResultInfo> GetChildInfoAsync(int familyid = 0, int devtype = 1, string appid = "")
|
|
{
|
|
return await _childService.GetInfoAsync(familyid, devtype, appid);
|
|
}
|
|
}
|
|
}
|