---+!! =paraworld.map.GetMapModelOfPage= <div style="float: right; margin: 5px; width: 250px; color: #4e5155; background-color: #f0eded; border: #ccc 1px solid; padding: 5px"> *Contents* %TOC% </div> ---++ Description 将所有Model数据分页,取得指定页的数据 ---++ Parameters |*Required*|*Name*|*Type*|*Description*| |<font color="#4682b4">required</font>|pageNum|%BLUE%int%ENDCOLOR%|每页的最大数据量| |^|pageIndex|%BLUE%int%ENDCOLOR%|第几页,以1开始的引| ---++ Example Return XML <verbatim> <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> </verbatim> ---++ Error Codes 查看完整的[[ErrorCodes][Error Code]] ---++ Test Cases ---+++!! case 1 Input: <verbatim> { ["pageNum"]=2, ["pageIndex"]=1, } </verbatim> _Result_: <verbatim> { ["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", }, }, } </verbatim>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2008-09-10
-
CaoYF
Home
Site map
CCWeb web
HaqiTeen web
Main web
ParaEngine web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
导航页WebTopMenu
Preferences
开发指南
Getting Started
ParacraftSDK
NPL
MCML
NPL Reference Manual
美术Mod
Account
Log In
English
简体中文
簡體中文
E
dit
A
ttach
Copyright © 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