post.go 356 B

12345678910111213141516171819
  1. package handler
  2. import (
  3. "cold-delivery/common/model"
  4. )
  5. type SysPost struct {
  6. model.Model
  7. PostName string `json:"postName" gorm:"size:128"`
  8. PostCode string `json:"postCode" gorm:"size:128"`
  9. DeptId int `json:"deptId"`
  10. Status string `json:"status"`
  11. model.ControlBy
  12. model.ModelTime
  13. }
  14. func (SysPost) TableName() string {
  15. return "sys_post"
  16. }