.net CoreAPI 模板文件下载

115 阅读1分钟

本文已参与「新人创作礼」活动,一起开启掘金创作之路。

先把模板文件放到项目目录里面:

[Authorize, HttpPost, Route("CheckResNewsTriggerCustomerLogic")] public async Task<IActionResult> CheckResNewsTriggerCustomerLogic(ResNewsCustomerLogicViewModel model) { var query = new QueryData<ResNewsCustomerLogicQuery>(); ResNewsCustomerLogicQuery resNewsCustomerLogic = ObjectHelper.CopyTo<ResNewsCustomerLogicViewModel, ResNewsCustomerLogicQuery>(model); query.Criteria = resNewsCustomerLogic; query.SqlConn = CurrentConnFactory; query.UserName = CurrentUser.UserNo; query.RepertoryId = CurrentUser.GroupType; var result = await _manager.CheckResNewsTriggerCustomerLogicClassIficationMaAsync(query); return Ok(result); }