hudong
8 天以前 1ef909b2c886c9f20f05c8e61efd555ef377b715
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 
using HH.WCS.Mobox3.pinggao.device;
using Newtonsoft.Json;
using System.Web.Http;
using static HH.WCS.Mobox3.pinggao.api.ApiHelper;
using static HH.WCS.Mobox3.pinggao.api.ApiModel;
using static HH.WCS.Mobox3.pinggao.api.OtherModel;
using static HH.WCS.Mobox3.pinggao.device.S7Helper;
 
namespace HH.WCS.Mobox3.pinggao.api {
    /// <summary>
    /// 测试用,如果项目中要和设备对接,前期设备无法测试,用接口模拟
    /// </summary>
    [RoutePrefix("api")]
    public class DebugController : System.Web.Http.ApiController {
 
 
        [HttpPost]
        [Route("s7SetInt")]
        public SimpleResult s7SetInt(DBWModel model) {
            S7Helper.s7SetInt(model);
            return new SimpleResult();
 
        }
 
 
        [HttpPost]
        [Route("s7SetBit")]
        public SimpleResult s7SetBit(DBXModel model) {
            S7Helper.s7SetBit(model);
            return new SimpleResult();
 
        }
        [HttpPost]
        [Route("s7SetString")]
        public SimpleResult s7SetString(DBBModel model) {
            S7Helper.s7SetStr(model);
            return new SimpleResult();
 
        }
 
 
    }
}