Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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)