28 lines
615 B
Go
28 lines
615 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
v1 "voucher/api/v1"
|
|
"voucher/internal/biz"
|
|
)
|
|
|
|
var _ v1.OrderHTTPServer = (*VoucherService)(nil)
|
|
|
|
type VoucherService struct {
|
|
VoucherBiz *biz.VoucherBiz
|
|
}
|
|
|
|
func NewVoucherService(VoucherBiz *biz.VoucherBiz) *VoucherService {
|
|
return &VoucherService{VoucherBiz: VoucherBiz}
|
|
}
|
|
|
|
func (v VoucherService) Order(ctx context.Context, request *v1.OrderRequest) (*v1.OrderReply, error) {
|
|
//TODO implement me
|
|
panic("implement me")
|
|
}
|
|
|
|
func (v VoucherService) Query(ctx context.Context, request *v1.QueryRequest) (*v1.QueryReply, error) {
|
|
//TODO implement me
|
|
panic("implement me")
|
|
}
|