dev-discount
parent
a40ece69fa
commit
dd0627e452
@ -0,0 +1,46 @@ |
|||||||
|
package com.cweb.controller; |
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON; |
||||||
|
import com.alibaba.fastjson.JSONObject; |
||||||
|
import com.hai.common.Base64Util; |
||||||
|
import com.hai.common.exception.ErrorCode; |
||||||
|
import com.hai.common.exception.ErrorHelp; |
||||||
|
import com.hai.common.exception.SysCode; |
||||||
|
import com.hai.common.security.AESEncodeUtil; |
||||||
|
import com.hai.common.utils.ResponseMsgUtil; |
||||||
|
import com.hai.entity.HighDiscountAgentCode; |
||||||
|
import com.hai.entity.HighDiscountAgentRel; |
||||||
|
import com.hai.model.ResponseData; |
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import org.slf4j.Logger; |
||||||
|
import org.slf4j.LoggerFactory; |
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
@Controller |
||||||
|
@RequestMapping(value = "") |
||||||
|
@Api(value = "订单业务") |
||||||
|
public class OrderController { |
||||||
|
|
||||||
|
private static Logger log = LoggerFactory.getLogger(OrderController.class); |
||||||
|
|
||||||
|
@RequestMapping(value="/create",method = RequestMethod.GET) |
||||||
|
@ResponseBody |
||||||
|
@ApiOperation(value = "创建订单") |
||||||
|
public ResponseData create(@RequestBody JSONObject body) { |
||||||
|
try { |
||||||
|
|
||||||
|
if (body == null) { |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
return ResponseMsgUtil.success(null); |
||||||
|
|
||||||
|
} catch (Exception e) { |
||||||
|
log.error("OrderController -> create() error!",e); |
||||||
|
return ResponseMsgUtil.exception(e); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue