package logic import ( "app.yhyue.com/moapp/jyResourcesCenter/rpc/internal/svc" "app.yhyue.com/moapp/jyResourcesCenter/rpc/resourcesCenter" "app.yhyue.com/moapp/jyResourcesCenter/service" "context" "github.com/tal-tech/go-zero/core/logx" ) type UpdateUserBalanceLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewUpdateUserBalanceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateUserBalanceLogic { return &UpdateUserBalanceLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } var balanceService service.BalanceService // 根据账户标识修改资源结存账 func (l *UpdateUserBalanceLogic) UpdateUserBalance(in *resourcesCenter.Balance) (*resourcesCenter.Response, error) { // todo: add your logic here and delete this line code, msg := balanceService.UpdateUserBalance(in) return &resourcesCenter.Response{ Code: code, Message: msg, }, nil }