paraworld.map.GetModelByID

Description

依主键获得一个Model的信息

Parameters

Required Name Type Description
required modelID string Model的ID
optional isSimple boolean 若要返回精简模式的数据,则为True,若要返回全部字段数据,则为False。默认值为False

Example Return XML

<msg xmlns="">
        <modelID type="double">83</modelID>
        <modelType type="double">1</modelType>
        <picURL type="string">/Uploads/MapModel/2D/1f9d9783-3425-45e1-871e-77c06f8eb0_0.png</picURL>
        <texturePath type="string">nicaodi_1.png</texturePath>
        <package type="string">111</package>
        <version type="string">1-1-1</version>
        <manufacturerType type="double">1</manufacturerType>
        <manufacturerID type="string">00000000-0000-0000-0000-000000000000</manufacturerID>
        <manufacturerName type="string">ParaEngine</manufacturerName>
        <price type="double">100.00</price>
        <price2 type="double">-1.00</price2>
        <price2StartTime type="datetime">9999-12-31 0:00:00</price2StartTime>
        <price2EndTime type="datetime">1900-1-1 0:00:00</price2EndTime>
        <addDate type="datetime">2007-11-6 15:59:06</addDate>
        <ownerUserID type="string">fae5feb1-9d4f-4a78-843a-1710992d4e70</ownerUserID>
        <ownerUserName type="string">zzzzzz</ownerUserName>
        <modelPath type="string">nicaodi_1.png</modelPath>
        <allowEdit type="boolean">True</allowEdit>
        <directions type="string">0</directions>
</msg>

Error Codes

当发生异常时,返回数据中会有含有错误码的“errorCode”节点。 0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录

Test Cases

case 1

Input:

{

        ["modelID"]=83,

        ["isSimple"]=false,

}

Result:

{

        ["picURL"]="/Uploads/MapModel/2D/1f9d9783-3425-45e1-871e-77c06f8eb0_0.png",

        ["price"]=100,

        ["ownerUserID"]="fae5feb1-9d4f-4a78-843a-1710992d4e70",

        ["price2"]=-1,

        ["allowEdit"]=true,

        ["ownerUserName"]="zzzzzz",

        ["texturePath"]="nicaodi_1.png",

        ["manufacturerName"]="ParaEngine",

        ["manufacturerID"]="00000000-0000-0000-0000-000000000000",

        ["modelType"]=1,

        ["version"]="1-1-1",

        ["directions"]="0",

        ["package"]="111",

        ["modelPath"]="nicaodi_1.png",

        ["modelID"]=83,

        ["manufacturerType"]=1,

}
Topic revision: r3 - 2008-04-18 - CaoYF
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback