32 lines
665 B
Go
32 lines
665 B
Go
|
package inventoryservicelogic
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"app-cloudep-trade-service/gen_result/pb/trade"
|
||
|
"app-cloudep-trade-service/internal/svc"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/core/logx"
|
||
|
)
|
||
|
|
||
|
type AddStockLogic struct {
|
||
|
ctx context.Context
|
||
|
svcCtx *svc.ServiceContext
|
||
|
logx.Logger
|
||
|
}
|
||
|
|
||
|
func NewAddStockLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddStockLogic {
|
||
|
return &AddStockLogic{
|
||
|
ctx: ctx,
|
||
|
svcCtx: svcCtx,
|
||
|
Logger: logx.WithContext(ctx),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// AddStock 增加庫存
|
||
|
func (l *AddStockLogic) AddStock(in *trade.StockAdjustmentReq) (*trade.OKResp, error) {
|
||
|
// todo: add your logic here and delete this line
|
||
|
|
||
|
return &trade.OKResp{}, nil
|
||
|
}
|