Files
Yeuoly 478c98da5c fix: signature dose not work as expected, if upload new pkg to old dify (#311)
- Updated the  method in the  interface to remove the  parameter, simplifying its usage.
- Introduced a new  function to provide a default verification structure.
- Added a  file to store verification data, improving the plugin signing process.
- Enhanced tests in  to validate the verification process, ensuring proper handling of success and failure scenarios.
- Refactored related code to accommodate the new verification structure and improve overall maintainability.
2025-05-26 13:10:34 +08:00

20 lines
477 B
Go

package decoder
type AuthorizedCategory string
const (
AUTHORIZED_CATEGORY_LANGGENIUS AuthorizedCategory = "langgenius"
AUTHORIZED_CATEGORY_PARTNER AuthorizedCategory = "partner"
AUTHORIZED_CATEGORY_COMMUNITY AuthorizedCategory = "community"
)
type Verification struct {
AuthorizedCategory AuthorizedCategory `json:"authorized_category"`
}
func DefaultVerification() *Verification {
return &Verification{
AuthorizedCategory: AUTHORIZED_CATEGORY_LANGGENIUS,
}
}