29 lines
783 B
Go
29 lines
783 B
Go
package utils
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
type ManagePatent struct {
|
|
Kind string `json:"kind"`
|
|
Title string `json:"title"`
|
|
FileUrl string `json:"file_url"`
|
|
ApplyCode string `json:"apply_code"`
|
|
ApplyAt string `json:"apply_at"`
|
|
OpenCode string `json:"open_code"`
|
|
OpenAt string `json:"open_at"`
|
|
ApplyName string `json:"apply_name"`
|
|
ApplyAddress string `json:"apply_address"`
|
|
Inventor string `json:"inventor"`
|
|
Description string `json:"description"`
|
|
PrincipalClaim string `json:"principal_claim"`
|
|
IpcCode string `json:"ipc_code"`
|
|
}
|
|
|
|
func TestLoadConfig(t *testing.T) {
|
|
//file := "../file/manage_patent.json"
|
|
//out := make([]*ManagePatent, 0)
|
|
//LoadConfig(file, &out)
|
|
//fmt.Println(AnyToJSON(out))
|
|
}
|