Commit 77dbabd2 by wangli

新增接口

1 parent 6bac7821
package com.alibaba.cloud.integration.order.controller;
import com.alibaba.cloud.integration.common.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class OrderAssignController {
@GetMapping("/order/assign/recommend/engineers")
public Result<?> getOrderAssignRecommendEnginners(@RequestParam String orderId,
@RequestParam String key,
@RequestParam String distance,
@RequestParam String recommend) {
//服务单指派-推荐技术员列表
return null;
}
@PostMapping("/order/assign")
public Result<?> orderAssign(@RequestBody String orderId, @RequestBody String engineerCode) {
// 服务单指派-指派提交
return null;
}
}
package com.alibaba.cloud.integration.order.service;
import com.alibaba.cloud.integration.common.Result;
public interface OrderAssign {
// 服务单指派-推荐技术员列表
Result<?> getOrderAssignRecommendEngineers(String orderId, String key, String distance, String recommend);
// 服务单指派-指派提交
Result<?> orderAssign(String orderId, String engineerCode);
}
package com.alibaba.cloud.integration.order.service.impl;
import com.alibaba.cloud.integration.common.Result;
import com.alibaba.cloud.integration.order.service.OrderAssign;
import org.springframework.stereotype.Service;
@Service
public class OrderAssignImpl implements OrderAssign {
@Override
public Result<?> getOrderAssignRecommendEngineers(String orderId, String key, String distance, String recommend) {
return null;
}
@Override
public Result<?> orderAssign(String orderId, String engineerCode) {
return null;
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!