This commit is contained in:
陈向学 2024-06-13 14:45:24 +08:00
parent 6fe0431b87
commit 832cff5ff7
3 changed files with 21 additions and 3 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.vs
bin
/CompetitionAPI/CompetitionAPI/Competition.Common/obj
obj

View File

@ -26,7 +26,7 @@ namespace CompetitionAPI.Controllers.api
/// <param name="req"></param> /// <param name="req"></param>
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
public JsonResult Index(string action,string name) public JsonResult Index(string action)
{ {
if (action == "getNum") if (action == "getNum")
{ {

View File

@ -18,10 +18,24 @@ namespace CompetitionAPI.Controllers.api
Configuration = configuration; Configuration = configuration;
} }
/// <summary>
/// 堆场
/// </summary>
/// <param name="action"></param>
/// <param name="name"></param>
/// <returns></returns>
[HttpGet] [HttpGet]
public JsonResult Index(string action, string name) public JsonResult Index(string action)
{ {
if(action=="getNum")
{
//堆场总数
int allNum = 0;
//读取配置文件示例
var mysql = Configuration.GetConnectionString("MySQL").ToString();
//查询企业表所有数据
var list = bll.GetModelList("");
}
return Json(Tool.GetJsonWithCode(APICode.Success, null)); return Json(Tool.GetJsonWithCode(APICode.Success, null));
} }
} }