31 lines
615 B
Go
31 lines
615 B
Go
package logic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/sale/pb"
|
|
"lone-services/services/sale/internal/svc"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type ApiSaleInfoLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewApiSaleInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ApiSaleInfoLogic {
|
|
return &ApiSaleInfoLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
func (l *ApiSaleInfoLogic) ApiSaleInfo(in *sale.EmptyReq) (*sale.Response, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &sale.Response{}, nil
|
|
}
|