自动初始化单独建仓 为 命令行做基础

This commit is contained in:
pixel
2020-09-07 11:33:28 +08:00
parent 34bc072efd
commit fb6dfcbd72
14 changed files with 485 additions and 531 deletions
-7
View File
@@ -2,7 +2,6 @@ package model
import (
"gorm.io/gorm"
"time"
)
type ExaCustomer struct {
@@ -13,9 +12,3 @@ 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: 1, SysUserAuthorityID: "888"},
}
}