实体对象
示例
import (
. "github.com/doytowin/goooqo"
)
type UserEntity struct {
Int64Id
Name *string `json:"name,omitempty"`
Score *int `json:"score,omitempty"`
Memo *string `json:"memo,omitempty"`
}
func (u UserEntity) GetTableName() string {
return "t_user"
}定义
最后更新于