Files
public/message/msg_test.go
谢小军 1a914536a1 fix msg
2020-06-09 17:38:34 +08:00

21 lines
335 B
Go

package message
import (
"fmt"
"testing"
)
type Test struct {
State bool `json:"state"`
Code int `json:"code"`
Error string `json:"error"`
}
func Test_sing(t *testing.T) {
var test Test
test.State = true
test.Error = ""
fmt.Println(GetSuccessMsg(NormalMessageID))
fmt.Println(GetErrorStrMsg("默认的返回值"))
}