aaa
This commit is contained in:
parent
6fe0431b87
commit
832cff5ff7
|
@ -0,0 +1,4 @@
|
|||
.vs
|
||||
bin
|
||||
/CompetitionAPI/CompetitionAPI/Competition.Common/obj
|
||||
obj
|
|
@ -26,7 +26,7 @@ namespace CompetitionAPI.Controllers.api
|
|||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public JsonResult Index(string action,string name)
|
||||
public JsonResult Index(string action)
|
||||
{
|
||||
if (action == "getNum")
|
||||
{
|
||||
|
|
|
@ -18,10 +18,24 @@ namespace CompetitionAPI.Controllers.api
|
|||
Configuration = configuration;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 堆场
|
||||
/// </summary>
|
||||
/// <param name="action"></param>
|
||||
/// <param name="name"></param>
|
||||
/// <returns></returns>
|
||||
[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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue