generated from root/miduo_server
21 lines
543 B
Go
21 lines
543 B
Go
package log
|
|
|
|
import (
|
|
"github.com/gogf/gf/util/gconv"
|
|
)
|
|
|
|
// Fill with you ideas below.
|
|
|
|
func (r *Entity) PkVal() int {
|
|
return gconv.Int(r.Id)
|
|
}
|
|
|
|
func (r *Entity) TableName() string {
|
|
return Table
|
|
}
|
|
|
|
func (m *arModel) Columns() string {
|
|
sqlColumns := "t.id,t.log_type as logType,t.oper_object as operObject,t.oper_table as operTable,t.oper_id as operId,t.oper_type as operType,t.oper_remark as operRemark,t.enable,t.update_time as updateTime,t.update_id as updateId,t.create_time as createTime,t.create_id as createId"
|
|
return sqlColumns
|
|
}
|