webapi
1.代码设置
获取GetList
url:http://dev.nbeport.com/aps/rest/DataSource/GetList
传入参数type,pid,如type=“管理船舶航线”;pid=父类id获取GetListByPids
url:http://dev.nbeport.com/aps/rest/DataSource/GetListByPids
传入参数pids,value;pids=id1,id2,id3,value=1获取Model
url:http://dev.nbeport.com/aps/rest/DataSource/Get/{id}-
保存Post
url:http://dev.nbeport.com/aps/rest/DataSource/Post- 传入Aps_DataSource,其中 RowStatus:0新增,1修改;
- 返回Aps_DataSource
删除delete
url:http://dev.nbeport.com/aps/rest/DataSource/Delete/{id}
-
Aps_DataSource类
public int ID { get; set; }public int? PID { get; set; } public string TYPE { get; set; } public string NAME { get; set; } public string VALUE { get; set; } public string DESCEIPT { get; set; } public int? ORDER_NO { get; set; } public DateTime? CREATE_TIME { get; set; }