12345678910111213141516171819202122232425262728293031 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/BaseService/orderCenter/rpc/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/orderCenter/rpc/pb"
- "bp.jydev.jianyu360.cn/BaseService/orderCenter/service"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type RedAddLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewRedAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RedAddLogic {
- return &RedAddLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // 订单发票冲红
- func (l *RedAddLogic) RedAdd(in *pb.InvoiceAddReq) (*pb.OrderAddUpdateResp, error) {
- // todo: add your logic here and delete this line
- return service.RedAdd(in), nil
- }
|