---+!! =paraworld.map.SearchMapMark= <div style="float: right; margin: 5px; width: 250px; color: #4e5155; background-color: #f0eded; border: #ccc 1px solid; padding: 5px"> *Contents* %TOC% </div> ---++ Description 返回符合或包含关键字的第N页的map mark, 按标记等级从高到底排序 ---++ Parameters |*Required*|*Name*|*Type*|*Description*| |<font color="#4682b4">required</font>|keywords|%BLUE%string%ENDCOLOR%|搜索关键字| |<font color="#4682b4">optional</font>|type|%BLUE%string%ENDCOLOR%|要搜索的标记的类型(MarkTilte,Desc),默认为“MarkTitle”| |^|pageIndex|%BLUE%int%ENDCOLOR%|第几页的数据,默认为1| |^|pageNum|%BLUE%int%ENDCOLOR%|每页多少条数据,默认为10| |^|isApproved|%BLUE%boolean%ENDCOLOR%|检索的数据是否需要已通过审核,默认为false| ---++ Example Return XML <verbatim> <msg xmlns=""> <resultCount type="int">2</resultCount> <totalResult type="int">100</totalResult> <marks> <param index="1"> <markID type="int">1</markID> <markType type="int">1</markType> <markTitle type="string">title1</markTitle> <markStyle type="int">1</markStyle> <x type="double">0</x> <y type="double">0</y> <isApproved type="boolean">true</isApproved> <checkChangeL type="double">2686956</checkChangeL> </param> <param index="2"> <markID type="int">2</markID> <markType type="int">1</markType> <markTitle type="string">title2</markTitle> <markStyle type="int">1</markStyle> <x type="double">0.265845</x> <y type="double">0.358658</y> <isApproved type="boolean">true</isApproved> <checkChangeL type="double">5681267</checkChangeL> </param> </marks> </msg> </verbatim> ---++ Error Codes 查看完整的[[ErrorCodes][Error Code]] ---++ Test Cases ---+++!! case 1 Input: <verbatim> { ["keywords"]="test", ["type"]="MarkTitle", ["pageIndex"]=1, ["pageNum"]=2, } </verbatim> _Result_: <verbatim> { ["resultCount"]=2, ["totalResult"]=100, ["marks"]={ [1]={ ["markID"]=1, ["markType"]=1, ["markTitle"]="title1", ["markStyle"]=1, ["x"]=0, ["y"]=0, ["isApproved"]=true, ["checkChangeL"]=2686956, }, [2]={ ["markID"]=2, ["markType"]=1, ["markTitle"]="title2", ["markStyle"]=1, ["x"]=0.265845, ["y"]=0.358658, ["isApproved"]=true, ["checkChangeL"]=5681267, }, }, } </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-11
-
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