mirror of
https://github.com/weloe/token-go.git
synced 2025-10-16 20:40:43 +08:00
refactor: persist add Serializer
This commit is contained in:
6
persist/serializer.go
Normal file
6
persist/serializer.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package persist
|
||||
|
||||
type Serializer interface {
|
||||
Serialize(data interface{}) ([]byte, error)
|
||||
UnSerialize([]byte, interface{}) error
|
||||
}
|
Reference in New Issue
Block a user