数据初始化完成

This commit is contained in:
SliverHorn
2020-08-25 16:34:45 +08:00
parent 6c9f8b5eba
commit cf73dbd0d9
18 changed files with 566 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ package model
import (
"gorm.io/gorm"
"time"
)
type ExaCustomer struct {
@@ -12,3 +13,9 @@ type ExaCustomer struct {
SysUserAuthorityID string `json:"sysUserAuthorityID" form:"sysUserAuthorityID" gorm:"comment:'管理角色ID'"`
SysUser SysUser `json:"sysUser" form:"sysUser" gorm:"comment:'管理详情'"`
}
func ExaCustomerData() []ExaCustomer {
return []ExaCustomer{
{Model: gorm.Model{ID: 1, CreatedAt: time.Now(), UpdatedAt: time.Now()}, CustomerName: "测试客户", CustomerPhoneData: "1761111111", SysUserID: 10, SysUserAuthorityID: "888"},
}
}