订单 service

订单 service

package com.example.demo.service;

import com.example.demo.dataobject.OrderMaster;
import com.example.demo.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * 订单service层
 */
public interface OrderService {


     //创建订单
     OrderDTO create(OrderDTO orderDTO);

    //查询单个订单
    OrderDTO findOne(String orderId);

    //查询订单列表  使用分页
    Page findList(String buyerOpenid, Pageable pageable);



    //取消订单
     OrderDTO cancel(OrderDTO orderDTO);

    //完结订单
    OrderDTO finash(OrderDTO orderDTO);


    //支付订单
    OrderDTO paid(OrderDTO orderDTO);

}

你可能感兴趣的:(订单 service)