Skip to content

gdb: iTableName 没有被利用在 gf gen dao 生成的结果上 #4583

@xiaoyi510

Description

@xiaoyi510

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?还是属于故意设计?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions