增加API注释

This commit is contained in:
GoEdgeLab
2023-06-17 21:05:03 +08:00
parent 6a7af9e5cd
commit 7d54f3e165
10 changed files with 116 additions and 25 deletions

View File

@@ -179,11 +179,11 @@ service ServerService {
// 创建网站
message CreateServerRequest {
int64 userId = 1; // 可选参数用户ID如果不想指定用户此值可以为0
int64 adminId = 2; // 可选参数管理员ID
int64 userId = 1; // 可选用户ID如果不想指定用户此值可以为0
int64 adminId = 2; // 可选管理员ID
string type = 3; // 类型httpProxyHTTP反向代理一般CDN服务都选这个、httpWeb静态文件服务只会从服务器上读取文件内容不会转发到源站、tcpProxyTCP反向代理、udpProxyUDP反向代理
string name = 4; // 网站名称,通常可以是一个域名
string description = 5; // 可选参数,网站描述
string description = 5; // 可选,网站描述
// 配置相关
bytes serverNamesJSON = 8; // 域名列表 @link json:server_names
@@ -194,10 +194,10 @@ message CreateServerRequest {
bytes tlsJSON = 12; // TLS协议当type为tcpProxy时填写 @link json:tls_protocol
bytes unixJSON = 13; // 备用参数,不用填写
bytes udpJSON = 14; // UDP协议当type为udpProxy时填写 @link json:udp_protocol
int64 webId = 15; // 可选参数Web配置ID当type为httpProxy或者httpWeb时填写可以通过 /HTTPWebService/createHTTPWeb 接口创建;如果你需要配置缓存等信息时需要在 HTTPWebService 接口操作
bytes reverseProxyJSON = 16; // 反向代理(包含源站)设置
repeated int64 serverGroupIds = 17; // 所属网站分组ID列表
int64 userPlanId = 18; // 可选参数套餐ID
int64 webId = 15; // 可选Web配置ID当type为httpProxy或者httpWeb时填写可以通过 /HTTPWebService/createHTTPWeb 接口创建;如果你需要配置缓存等信息时需要在 HTTPWebService 接口操作
bytes reverseProxyJSON = 16; // 反向代理(包含源站)配置引用,此项可以在创建网站后再设置 @link json:reverse_proxy_ref
repeated int64 serverGroupIds = 17; // 可选项,所属网站分组ID列表
int64 userPlanId = 18; // 可选套餐ID
int64 nodeClusterId = 30; // 所部署的集群ID
bytes includeNodesJSON = 31; // 备用参数,不用填写