You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
630 B

  1. // 自动生成模板ExaWfLeave
  2. package model
  3. import (
  4. "gin-vue-admin/global"
  5. "time"
  6. )
  7. // 如果含有time.Time 请自行import time包
  8. type ExaWfLeave struct {
  9. global.GVA_MODEL
  10. Cause string `json:"cause" form:"cause" gorm:"column:cause;comment:"`
  11. StartTime time.Time `json:"startTime" form:"startTime" gorm:"column:start_time;comment:"`
  12. EndTime time.Time `json:"endTime" form:"endTime" gorm:"column:end_time;comment:"`
  13. }
  14. type ExaWfLeaveWorkflow struct {
  15. // 工作流操作结构体
  16. WorkflowBase `json:"wf"`
  17. ExaWfLeave `json:"business"`
  18. }
  19. func (e ExaWfLeave) TableName() string {
  20. return "exa_wf_leaves"
  21. }