TarsCloud / Tars

Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
BSD 3-Clause "New" or "Revised" License
9.79k stars 2.08k forks source link

tars 文件支持多个 interface 定义么? #848

Closed lanlin closed 3 years ago

lanlin commented 3 years ago

开发语言 php

如题,是否可以在同一个 tars 文件中定义多个 interface?

module Test
{
    interface FooA
    {
        string testA();
    };

    interface FooB
    {
        string testB();
    };
};

如果可以,那么 tars.proto.php 中的 objName 应该如何定义呢?

return
[
    'appName'         => 'App',
    'serverName'      => 'Testing',
    'objName'         => '??',
    ...
];
ruanshudong commented 3 years ago

支持, 返回的是数组,两个obj, 可以试一试

lanlin commented 3 years ago

@ruanshudong 好的,谢谢。