审查视图

pkg/infrastructure/serviceGateway/reply/base_reply.go 184 字节
庄敏学 authored
1 2 3 4 5 6 7 8 9 10 11 12 13
package reply

type BaseReply struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

func (msg *BaseReply) IsOk() bool {
	if msg.Code != 0 {
		return false
	}
	return true
}