Some checks failed
Build docker and publish / prepare (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.admin image_name:ppanel-admin name:admin]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.api image_name:ppanel-api name:api]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.node image_name:ppanel-node name:node]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.queue image_name:ppanel-queue name:queue]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.scheduler image_name:ppanel-scheduler name:scheduler]) (push) Has been cancelled
Build docker and publish / deploy (push) Has been cancelled
Build docker and publish / notify (push) Has been cancelled
55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
syntax = "v1"
|
|
|
|
info (
|
|
title: "系统配置管理"
|
|
)
|
|
|
|
type (
|
|
SiteConfigResp {
|
|
SiteName string `json:"site_name"`
|
|
SiteDesc string `json:"site_desc"`
|
|
SiteLogo string `json:"site_logo"`
|
|
ForceHttps bool `json:"force_https"`
|
|
}
|
|
|
|
UpdateSiteConfigReq {
|
|
SiteName string `json:"site_name"`
|
|
SiteDesc string `json:"site_desc"`
|
|
SiteLogo string `json:"site_logo"`
|
|
ForceHttps bool `json:"force_https"`
|
|
}
|
|
|
|
RegisterConfigResp {
|
|
StopRegister bool `json:"stop_register"`
|
|
EmailVerify bool `json:"email_verify"`
|
|
EmailWhitelist string `json:"email_whitelist"`
|
|
InviteForce bool `json:"invite_force"`
|
|
}
|
|
|
|
UpdateRegisterConfigReq {
|
|
StopRegister bool `json:"stop_register"`
|
|
EmailVerify bool `json:"email_verify"`
|
|
EmailWhitelist string `json:"email_whitelist"`
|
|
InviteForce bool `json:"invite_force"`
|
|
}
|
|
)
|
|
|
|
@server (
|
|
prefix: /api/v1/admin/system
|
|
group: system
|
|
jwt: JwtAuth
|
|
)
|
|
service ppaneladmin {
|
|
@handler GetSiteConfigHandler
|
|
get /site returns (SiteConfigResp)
|
|
|
|
@handler UpdateSiteConfigHandler
|
|
put /site (UpdateSiteConfigReq)
|
|
|
|
@handler GetRegisterConfigHandler
|
|
get /register returns (RegisterConfigResp)
|
|
|
|
@handler UpdateRegisterConfigHandler
|
|
put /register (UpdateRegisterConfigReq)
|
|
}
|