log.go 563 B

1234567891011121314151617181920
  1. package log
  2. import (
  3. "github.com/gogf/gf/util/gconv"
  4. )
  5. // Fill with you ideas below.
  6. func (r *Entity) PkVal() int {
  7. return gconv.Int(r.Id)
  8. }
  9. func (r *Entity) TableName() string {
  10. return Table
  11. }
  12. func (m *arModel) Columns() string {
  13. 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"
  14. return sqlColumns
  15. }