paraworld.map.GetMapModelOfPage

Description

将所有Model数据分页,取得指定页的数据

Parameters

Required Name Type Description
required pageNum int 每页的最大数据量
pageIndex int 第几页,以1开始的引

Example Return XML

<msg>
        <pageCount type="double">3</pageCount>
        <models>
                <param index="1">
                        <modelID type="double">39</modelID>
                        <modelType type="double">10</modelType>
                        <picURL type="string">/KidsMovieSite/Uploads/MapModel/2D/827548a2-8041-4a6c-9cfe-b8af7a0425b1_0.png</picURL>
                        <manufacturerType type="double">1</manufacturerType>
                        <manufacturerID type="string">12345678-0000-1234-0000-abcdef123456</manufacturerID>
                        <manufacturerName type="string">ParaEngine</manufacturerName>
                        <price type="double">1000.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-13 14:45:14</addDate>
                        <ownerUserID type="string">fae5feb1-9d4f-4a78-843a-1710992d4e70</ownerUserID>
                        <ownerUserName type="string">zzzzzz</ownerUserName>
                        <version type="string">1-1-1</version>
                        <modelPath type="string">MODEL PATH</modelPath>
                        <texturePath type="string">TEXTURE PATH</texturePath>
                        <package type="string">CYF</package>
                        <allowEdit type="boolean">True</allowEdit>
                        <userData1 type="string">0,2,4,6</userData1>
                </param>
                <param index="2">
                        <modelID type="double">37</modelID>
                        <modelType type="double">2</modelType>
                        <picURL type="string">/KidsMovieSite/Uploads/MapModel/2D/e33d293f-3a30-4990-8416-cfbe70a4001e_0.bmp</picURL>
                        <manufacturerType type="double">1</manufacturerType>
                        <manufacturerID type="string">12345678-0000-1234-0000-abcdef123456</manufacturerID>
                        <manufacturerName type="string">ParaEngine</manufacturerName>
                        <price type="double">1000.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-13 10:08:26</addDate>
                        <ownerUserID type="string">fae5feb1-9d4f-4a78-843a-1710992d4e70</ownerUserID>
                        <ownerUserName type="string">zzzzzz</ownerUserName>
                        <version type="string">1-1-1</version>
                        <modelPath type="string">MODEL PATH</modelPath>
                        <texturePath type="string">TEXTURE PATH</texturePath>
                        <package type="string">CYF</package>
                        <allowEdit type="boolean">True</allowEdit>
                        <userData1 type="string">0,2</userData1>
                </param>
        </models>
</msg>

Error Codes

查看完整的Error Code

Test Cases

case 1

Input:

{

        ["pageNum"]=2,

        ["pageIndex"]=1,

}

Result:

{

        ["pageCount"]=3,
        ["models"]={
                [1]={
                        ["modelID"]=39,
                        ["modelType"]=10,
                        ["picURL"]="/KidsMovieSite/Uploads/MapModel/2D/827548a2-8041-4a6c-9cfe-b8af7a0425b1_0.png",
                        ["manufacturerType"]=1,
                        ["manufacturerID"]=12345678-0000-1234-0000-abcdef123456,
                        ["manufacturerName"]="ParaEngine",
                        ["price"]=1000.00,
                        ["price2"]=-1.00,
                        ["price2StartTime"]="9999-12-31 0:00:00",
                        ["price2EndTime"]="1900-1-1 0:00:00",
                        ["addDate"]="2007-11-13 14:45:14",
                        ["ownerUserID"="fae5feb1-9d4f-4a78-843a-1710992d4e70",
                        ["ownerUserName"]="zzzzzz",
                        ["version"]="1-1-1",
                        ["modelPath"]="MODEL PATH",
                        ["texturePath"]="TEXTURE PATH",
                        ["package"]="CYF",
                        ["allowEdit"]="True",
                        ["userData1"]="0,2,4,6",
                },
                [2]=
                        ["modelID"]=36,
                        ["modelType"]=10,
                        ["picURL"]="/KidsMovieSite/Uploads/MapModel/2D/827548a2-8041-4a8d-9cfe-b8af7a0426ca_0.png",
                        ["manufacturerType"]=1,
                        ["manufacturerID"]=12345678-0000-1234-0000-abcdef123456,
                        ["manufacturerName"]="ParaEngine",
                        ["price"]=1000.00,
                        ["price2"]=-1.00,
                        ["price2StartTime"]="9999-12-31 0:00:00",
                        ["price2EndTime"]="1900-1-1 0:00:00",
                        ["addDate"]="2007-11-13 14:45:14",
                        ["ownerUserID"="fae5feb1-9d4f-4a78-843a-1710992d4e70",
                        ["ownerUserName"]="zzzzzz",
                        ["version"]="1-1-1",
                        ["modelPath"]="MODEL PATH",
                        ["texturePath"]="TEXTURE PATH",
                        ["package"]="CYF",
                        ["allowEdit"]="True",
                        ["userData1"]="0,2,4,6",
                },
        },

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