What do you want to ask?
框架中 gdb 有这个接口的定义,用于Model 获取表名的时候使用
// iTableName is the interface for retrieving table name for struct.
type iTableName interface {
TableName() string
}
但是通过 gf gen dao 生成的 dao 结构体中生成的是 Table 而不是 TableName
// Table returns the table name of the current DAO.
func (dao *UsersDao) Table() string {
return dao.table
}
请问这个是BUG?还是属于故意设计?