def ApiDelete(self, request, context): print("C_2_S ApiDelete: >>>>> ", request) response = demo_pb2.ResponseData(return_code=0, message="success", data="") print("S_2_C ApiDelete: <<<<< ", response) return response
async def ApiDelete(self, stream): request = await stream.recv_message() print("C_2_S ApiDelete: >>>>> ", request) response = demo_pb2.ResponseData( return_code=0, message="success", data="" ) print("S_2_C ApiDelete: <<<<< ", response) await stream.send_message(response)