删除冗余的west_domain_get_dns函数
This commit is contained in:
parent
2a6e3f0611
commit
c36888c0c3
@ -885,20 +885,6 @@ def west_domain_get_info(**data):
|
||||
return client.get_domain_info(domain)
|
||||
|
||||
|
||||
@jingrow.whitelist()
|
||||
def west_domain_get_dns(**data):
|
||||
"""获取域名DNS记录"""
|
||||
client = get_west_client()
|
||||
if not client:
|
||||
return {"status": "error", "message": "API客户端初始化失败"}
|
||||
|
||||
domain = data.get('domain')
|
||||
if not domain:
|
||||
return {"status": "error", "message": "缺少域名参数"}
|
||||
|
||||
return client.get_dns_records(domain)
|
||||
|
||||
|
||||
@jingrow.whitelist()
|
||||
def get_west_domain_dns_records(**data):
|
||||
"""获取域名解析记录(支持分页)"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user