watch_center
简介
组件接口
ElasticD.gs
ToolsD.gs
函数原型 | 函数作用 |
---|---|
map err_es_condition(BoolQuery BQ, map queries) | 产生查询错误索引的条件 |
map generate_fpid_es_condition(BoolQuery BQ, map queries) | 产生查询fp2id索引的条件 |
int get_app_id(string name) | 根据应用名称获取应用id |
bool get_user_app_role(int user_id, int app_id) | 查询用户是否被授权过某个应用 |
int get_app_role_id(int app_id, int is_admin) | 查询应用角色id |
array get_authorized_apps(string user_name, int is_authorized = 0) | 获取用户已 授权的应用 |
array get_blocked_keywords(map requires) | 获取屏蔽关键字列表 |
array get_all_special_keywords(map requires) | 获取所有特殊关键字列表 |
int is_exist_feishu_username(string username) | 判断飞书用户是否存在 |
lark_sender.gs
函数原型 | 函数作用 |
---|---|
array get_all_reporters(string page_token = nil) | 获取用户或机器人所在的群列表 |
array user_in_chats() | 获取用户所在的群并且该群包含报错机器人 |
LoginS.gs
函数原型 | 函数作用 |
---|---|
void get_token(string code) | 获取飞书用户token |
watch_center.gs
函数原型 | 函数作用 |
---|---|
void main() | a sample function |
样例
public void pkg_sample()
{
write("sample");
}