查询公会重复
查询公会名称是否重复。
源代码
playNANOOHandlers.guildExists = function(args) {
var result = plugin['v20230101'].guild.exists({
parameters: {
tableCode: args.tableCode,
name: args.name
}
});
if(result.statusCode == 200) {
log.debug(result.body.toString());
return true;
} else {
return false;
}
}
请求参数
| 参数 | 说明 | 类型 |
|---|---|---|
| tableCode | 表代码 | string |
| name | 公会名称 | string |
通信结果
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}
通信结果详细信息
| 数据键 | 说明 | 类型 |
|---|---|---|
| Status | 公会名称重复结果 EXISTS:重复 NOT_EXISTS:不重复 | string |