增加任务
This commit is contained in:
parent
607fe3a146
commit
c89fb9f27a
|
|
@ -62,12 +62,6 @@ service Cmb {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
rpc Test (Empty) returns (Empty) {
|
|
||||||
option (google.api.http) = {
|
|
||||||
post: "/voucher/cmb/v1/test",
|
|
||||||
body: "*"
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message OrderRetryRequest {
|
message OrderRetryRequest {
|
||||||
|
|
|
||||||
|
|
@ -62,12 +62,3 @@ func (s *CmbService) DecryptBody(ctx context.Context, request *v1.EncryptBodyReq
|
||||||
DecryptBody: decryptBody,
|
DecryptBody: decryptBody,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *CmbService) Test(ctx context.Context, request *v1.Empty) (*v1.Empty, error) {
|
|
||||||
|
|
||||||
if err := s.VoucherBiz.ExecuteNotice(ctx); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -150,24 +150,6 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/api.v1.CmbRequest'
|
$ref: '#/components/schemas/api.v1.CmbRequest'
|
||||||
/voucher/cmb/v1/test:
|
|
||||||
post:
|
|
||||||
tags:
|
|
||||||
- Cmb
|
|
||||||
operationId: Cmb_Test
|
|
||||||
requestBody:
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/api.v1.Empty'
|
|
||||||
required: true
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: OK
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/api.v1.Empty'
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
api.v1.CmbOrderRequest:
|
api.v1.CmbOrderRequest:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue