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.

21 lines
843 B

  1. package model
  2. import (
  3. "gorm.io/gorm"
  4. "time"
  5. )
  6. type ExaCustomer struct {
  7. gorm.Model
  8. CustomerName string `json:"customerName" form:"customerName" gorm:"comment:'客户名'"`
  9. CustomerPhoneData string `json:"customerPhoneData" form:"customerPhoneData" gorm:"comment:'客户手机号'"`
  10. SysUserID uint `json:"sysUserId" form:"sysUserId" gorm:"comment:'管理ID'"`
  11. SysUserAuthorityID string `json:"sysUserAuthorityID" form:"sysUserAuthorityID" gorm:"comment:'管理角色ID'"`
  12. SysUser SysUser `json:"sysUser" form:"sysUser" gorm:"comment:'管理详情'"`
  13. }
  14. func ExaCustomerData() []ExaCustomer {
  15. return []ExaCustomer{
  16. {Model: gorm.Model{ID: 1, CreatedAt: time.Now(), UpdatedAt: time.Now()}, CustomerName: "测试客户", CustomerPhoneData: "1761111111", SysUserID: 1, SysUserAuthorityID: "888"},
  17. }
  18. }