add errors interface and update api
This commit is contained in:
parent
0142743bb1
commit
b242cef027
7 changed files with 117 additions and 17 deletions
35
docfiles/providers/managers/core_errors/manager.js
Normal file
35
docfiles/providers/managers/core_errors/manager.js
Normal file
|
@ -0,0 +1,35 @@
|
|||
/**
|
||||
* ### Серверные ошибки
|
||||
*
|
||||
* Интерфейс предоставляющий доступ к списку ошибок платформы.
|
||||
*
|
||||
* ```bash
|
||||
* // доступ
|
||||
* ps.pl.core_errors
|
||||
* ```
|
||||
*
|
||||
* @group manager
|
||||
* @namespace CoreErrors
|
||||
* @extends manager
|
||||
*/
|
||||
function CoreErrors() {
|
||||
/**
|
||||
* Возвратит перевод названия и описания для ошибки.
|
||||
* <br>
|
||||
* <br>
|
||||
* Пример
|
||||
* ```javascript
|
||||
* var error_info = ps.pl.core_errors.get_error(101);
|
||||
* // Вывод =>
|
||||
* // {name: "Узел не существует", description: "Узел с требуемым индексом не содержится в дереве п…. Данный код ошибки используется в masterProvider"}
|
||||
* ```
|
||||
* @public
|
||||
* @function get_error
|
||||
* @memberof CoreErrors
|
||||
* @param {number} _id
|
||||
* @returns {{}}
|
||||
*/
|
||||
this.get_error = function (_id) {
|
||||
|
||||
};
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
* ```bash
|
||||
* // доступ
|
||||
* ps.pl.datasource_manager
|
||||
* ps.pl.datasources
|
||||
* ```
|
||||
*
|
||||
* @group manager
|
||||
|
|
|
@ -109,6 +109,59 @@ function Model() {
|
|||
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @public
|
||||
* @function get_base_components
|
||||
* @memberof Models.Model
|
||||
* @param groupType {v2.model_type}
|
||||
* @returns {tools.promise()}
|
||||
*/
|
||||
this.get_base_components = function () {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @public
|
||||
* @function get_components
|
||||
* @memberof Models.Model
|
||||
* @param {v2.string} _c_tag
|
||||
* @param {v2.list<v2.string>} _parent_c_tags
|
||||
* @returns {tools.promise()}
|
||||
*/
|
||||
this.get_components = function (_c_tag, _parent_c_tags) {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @public
|
||||
* @function get_components_with_id
|
||||
* @memberof Models.Model
|
||||
* @param {v2.string} _c_tag
|
||||
* @param {v2.list<v2.string>} _parent_c_tags
|
||||
* @param {v2.string} _id
|
||||
* @returns {tools.promise()}
|
||||
*/
|
||||
this.get_components_with_id = function (_c_tag, _parent_c_tags, _id) {
|
||||
|
||||
};
|
||||
/**
|
||||
*
|
||||
* @public
|
||||
* @function get_components_with_parent_id
|
||||
* @memberof Models.Model
|
||||
* @param {v2.string} _c_tag
|
||||
* @param {v2.list<v2.string>} _parent_c_tags
|
||||
* @param {v2.string} _parent_id
|
||||
* @returns {tools.promise()}
|
||||
*/
|
||||
this.get_components_with_parent_id = function (_c_tag, _parent_c_tags, _parent_id) {
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @public
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
* ```bash
|
||||
* // доступ
|
||||
* ps.pl.core_translations
|
||||
* ps.pl.translations
|
||||
* ```
|
||||
*
|
||||
* @group manager
|
||||
|
@ -19,7 +19,7 @@ function CoreTranslations() {
|
|||
*
|
||||
* @example
|
||||
* // Пример
|
||||
* var result = ps.pl.core_translations.translations();
|
||||
* var result = ps.pl.translations.translations();
|
||||
* var string = JSON.stringify(result, true, 3);
|
||||
*
|
||||
* // результат будет примерно такой
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* ```bash
|
||||
* // доступ
|
||||
* ps.pl.user_manager
|
||||
* ps.pl.users
|
||||
* ```
|
||||
*
|
||||
* @group manager
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue