docs: 订单类注释优化

This commit is contained in:
郝先瑞 2022-02-01 18:53:52 +08:00
parent 96d666336c
commit 92c97a0f90
3 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,6 @@ import com.youlai.mall.ums.api.MemberFeignClient;
import com.youlai.mall.ums.pojo.dto.MemberDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@ -29,7 +28,7 @@ import java.util.Optional;
* @email huawei_code@163.com
* @date 2020-12-30 22:31:10
*/
@Api(tags = "【系统管理】订单服务")
@Api(tags = "系统管理_订单管理")
@RestController("adminOrderController")
@RequestMapping("/api/v1/orders")
@Slf4j

View File

@ -21,7 +21,7 @@ import java.util.List;
* @date 2020-12-30 22:31:10
*/
@Api(tags = "【移动端】购物车")
@Api(tags = "移动端_购物车管理")
@RestController
@RequestMapping("/app-api/v1/carts")
@Slf4j

View File

@ -27,7 +27,7 @@ import javax.validation.Valid;
* @email huawei_code@163.com
* @date 2020-12-30 22:31:10
*/
@Api(tags = "【移动端】订单服务")
@Api(tags = "移动端_订单管理")
@RestController
@RequestMapping("/app-api/v1/orders")
@Slf4j
@ -89,7 +89,7 @@ public class OrderController {
@ApiOperation("订单取消")
@PutMapping("/cancel")
public Result cancel( @RequestParam Long id){
public Result cancel(@RequestParam Long id) {
boolean result = orderService.cancelOrder(id);
return Result.judge(result);
}