chore: replace all cn comments to en version by volc api (#313)

This commit is contained in:
tecvan
2025-07-31 15:18:11 +08:00
committed by GitHub
parent 91d6cdb430
commit 5abc63fba6
254 changed files with 5899 additions and 5844 deletions

View File

@@ -341,7 +341,7 @@ type AuthV2 struct {
}
func (au *AuthV2) UnmarshalJSON(data []byte) error {
auth := &Auth{} // 兼容老数据
auth := &Auth{} // Compatible with old data
err := json.Unmarshal(data, auth)
if err != nil {
return errorx.WrapByCode(err, errno.ErrPluginInvalidManifest, errorx.KV(errno.PluginMsgKey,
@@ -381,7 +381,7 @@ func (au *AuthV2) UnmarshalJSON(data []byte) error {
}
func (au *AuthV2) unmarshalService(auth *Auth) (err error) {
if au.SubType == "" && au.Payload == "" { // 兼容老数据
if au.SubType == "" && au.Payload == "" { // Compatible with old data
au.SubType = AuthzSubTypeOfServiceAPIToken
}
@@ -421,7 +421,7 @@ func (au *AuthV2) unmarshalService(auth *Auth) (err error) {
}
func (au *AuthV2) unmarshalOAuth(auth *Auth) (err error) {
if au.SubType == "" { // 兼容老数据
if au.SubType == "" { // Compatible with old data
au.SubType = AuthzSubTypeOfOAuthAuthorizationCode
}