|
|
@ -4,20 +4,26 @@ import com.base.springcloud.base.CommonResult; |
|
|
import com.base.springcloud.constant.ErrorConstant; |
|
|
import com.base.springcloud.constant.ErrorConstant; |
|
|
import com.base.springcloud.entity.Merchant; |
|
|
import com.base.springcloud.entity.Merchant; |
|
|
import com.base.springcloud.service.MerchantService; |
|
|
import com.base.springcloud.service.MerchantService; |
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
@RestController |
|
|
@RestController |
|
|
@Slf4j |
|
|
@Slf4j |
|
|
|
|
|
@Api(tags="商户管理") |
|
|
|
|
|
@RequestMapping("/merchant") |
|
|
public class MerchantController { |
|
|
public class MerchantController { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private MerchantService merchantService; |
|
|
private MerchantService merchantService; |
|
|
|
|
|
|
|
|
@PostMapping("/merchant/add") |
|
|
@ApiOperation(value="创建商户信息") |
|
|
|
|
|
@PostMapping("/add") |
|
|
public CommonResult create(@RequestBody Merchant merchant) { |
|
|
public CommonResult create(@RequestBody Merchant merchant) { |
|
|
// TODO 业务逻辑
|
|
|
// TODO 业务逻辑
|
|
|
|
|
|
|
|
|
|