fusenapi/server/orders/internal/handler/getorderdetailhandler.go

22 lines
473 B
Go
Raw Normal View History

2023-06-16 06:28:59 +00:00
package handler
import (
"net/http"
"fusenapi/server/orders/internal/logic"
"fusenapi/server/orders/internal/svc"
"fusenapi/server/orders/internal/types"
)
func GetOrderDetailHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetOrderDetailReq
2023-07-21 06:20:21 +00:00
2023-06-16 06:28:59 +00:00
// 创建一个业务逻辑层实例
l := logic.NewGetOrderDetailLogic(r.Context(), svcCtx)
resp := l.GetOrderDetail(&req, userinfo)
2023-07-21 06:20:21 +00:00
2023-06-16 06:28:59 +00:00
}
}