Commit
This commit is contained in:
13
internal/app/safeLineApi/AuthToken.go
Normal file
13
internal/app/safeLineApi/AuthToken.go
Normal file
@ -0,0 +1,13 @@
|
||||
package safeLineApi
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
type AuthTokenResp struct {
|
||||
Data string `json:"data"`
|
||||
Err string `json:"err"`
|
||||
Msg string `json:"msg"`
|
||||
}
|
||||
|
||||
func (authResp *AuthTokenResp) Unmarshal(data []byte) {
|
||||
_ = json.Unmarshal(data, authResp)
|
||||
}
|
Reference in New Issue
Block a user