mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-22 17:56:00 -04:00
478c98da5c
- 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.
20 lines
477 B
Go
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,
|
|
}
|
|
}
|