@@ -2,17 +2,17 @@ import SuperMap from '../SuperMap';
22import { ServerType } from '../REST' ;
33import '../security/SecurityManager' ;
44import { FetchRequest } from '../util/FetchRequest' ;
5-
65/**
76 * @class SuperMap.iPortalServiceBase
87 * @classdesc iPortal服务基类(有权限限制的类需要实现此类)
98 */
109
10+
1111export default class IPortalServiceBase {
1212 /**
13- * @method SuperMap.iPortalServiceBase.initialize
13+ * @function SuperMap.iPortalServiceBase.prototype.constructor
1414 *
15- * @param url
15+ * @param url -{String}-服务器域名+端口,如:http://localhost:8092
1616 */
1717 constructor ( url ) {
1818 var me = this ;
@@ -21,12 +21,12 @@ export default class IPortalServiceBase {
2121 }
2222
2323 /**
24- * @method SuperMap.iPortalServiceBase.request
24+ * @function SuperMap.iPortalServiceBase.prototype .request
2525 * @description 子类统一通过该方法发送请求
26- * @param url
27- * @param method
28- * @param param
29- * @param requestOptions
26+ * @param url -{String}-服务器域名+端口,如:http://localhost:8092
27+ * @param method -{INT}
28+ * @param requestOptions -{Object}
29+ * @description 获取返回参数的json数组
3030 *
3131 */
3232
@@ -38,11 +38,12 @@ export default class IPortalServiceBase {
3838 }
3939
4040
41+
4142 /**
42- * @method SuperMap.iPortalServiceBase.createCredentialUrl
43+ * @function SuperMap.iPortalServiceBase.prototype .createCredentialUrl
4344 * @description 追加授权信息
44- * @param url
45- * @return {string }
45+ * @param url -{String}-服务器域名+端口,如:http://localhost:8092
46+ * @return {string } 新地址
4647 */
4748
4849 createCredentialUrl ( url ) {
@@ -65,7 +66,7 @@ export default class IPortalServiceBase {
6566
6667
6768 /**
68- * @method SuperMap.iPortalServiceBase.getCredential
69+ * @function SuperMap.iPortalServiceBase.prototype .getCredential
6970 * @description 获取token
7071 * @return {string } 返回获取的token
7172 *
@@ -84,7 +85,7 @@ export default class IPortalServiceBase {
8485
8586
8687 /**
87- * @method SuperMap.iPortalServiceBase.getKey
88+ * @function SuperMap.iPortalServiceBase.prototype .getKey
8889 * @description 其子类需要重写该方法,修改其中获取key的字段
8990 * 存储key可能是服务id字段,可能是url
9091 */
0 commit comments