小程序一些功能更新

This commit is contained in:
李琦
2026-09-29 10:57:01 +08:00
parent 0cb70a7618
commit 3bb7fa8db3
96 changed files with 13890 additions and 213 deletions

View File

@@ -0,0 +1,22 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
// Employees 企业员工库(跨活动复用)。
//
// 去重键为 (EnterpriseId, Phone)(见 migrate 的 UNIQUE uk_ent_phone);
// Name 参与导入时的「同名不同号」冲突检测。
type Employees struct {
Id int64 `json:"id"`
EnterpriseId int64 `json:"enterprise_id"`
Name string `json:"name"`
Phone string `json:"phone"` // 手机号(入库前去空格)
Dept string `json:"dept"`
Remark string `json:"remark"`
Status int `json:"status"` // 1 正常 / 0 停用
CreatedAt *gtime.Time `json:"created_at"`
UpdatedAt *gtime.Time `json:"updated_at"`
// DeletedAt 软删除时间,NULL=未删除;DeletedFrom 保存墓碑化前的 phone 原值(JSON),便于恢复。
DeletedAt *gtime.Time `json:"deleted_at"`
DeletedFrom *string `json:"deleted_from"`
}