feat(plugin): rebase main
This commit is contained in:
@ -1,4 +1,20 @@
|
||||
// Code generated by thriftgo (0.4.1). DO NOT EDIT.
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by thriftgo (0.4.2). DO NOT EDIT.
|
||||
|
||||
package product_common
|
||||
|
||||
@ -41,6 +57,8 @@ const (
|
||||
ProductEntityType_Common ProductEntityType = 99
|
||||
// Special Topics (Compatible with previous designs)
|
||||
ProductEntityType_Topic ProductEntityType = 101
|
||||
// Saas plugin,the plugins from coze saas
|
||||
ProductEntityType_SaasPlugin ProductEntityType = 999
|
||||
)
|
||||
|
||||
func (p ProductEntityType) String() string {
|
||||
@ -77,6 +95,8 @@ func (p ProductEntityType) String() string {
|
||||
return "Common"
|
||||
case ProductEntityType_Topic:
|
||||
return "Topic"
|
||||
case ProductEntityType_SaasPlugin:
|
||||
return "SaasPlugin"
|
||||
}
|
||||
return "<UNSET>"
|
||||
}
|
||||
@ -115,6 +135,8 @@ func ProductEntityTypeFromString(s string) (ProductEntityType, error) {
|
||||
return ProductEntityType_Common, nil
|
||||
case "Topic":
|
||||
return ProductEntityType_Topic, nil
|
||||
case "SaasPlugin":
|
||||
return ProductEntityType_SaasPlugin, nil
|
||||
}
|
||||
return ProductEntityType(0), fmt.Errorf("not a valid ProductEntityType string")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user