自动化立体仓库 - WCS系统
luxiaotao1123
2020-08-28 5bb21f6acf38e234b765a76561c588d808a44c93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.zy.core.channel;
 
import com.zy.core.cache.MessageQueue;
import com.zy.core.enums.SlaveType;
import com.zy.core.model.Task;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * Created by vincent on 2020/8/5
 */
@RestController
public class TestController {
 
    @RequestMapping("/test")
    public String test(){
        Task task = new Task();
        MessageQueue.offer(SlaveType.Crn, 1, task);
        return "ok";
    }
 
}