增加档案功能

This commit is contained in:
2026-08-29 22:06:00 +08:00
parent 2dfc6d6aaf
commit 79217187ac
21 changed files with 2015 additions and 488 deletions
+5 -5
View File
@@ -24,9 +24,9 @@ type BackendEmployeeFile struct {
EmergencyPhone string `orm:"column(emergency_phone);size(20);default()" json:"emergency_phone"`
EmergencyRelation string `orm:"column(emergency_relation);size(30);default()" json:"emergency_relation"`
WorkEmail string `orm:"column(work_email);size(100);default()" json:"work_email"`
HireDate string `orm:"column(hire_date);type(date);null" json:"hire_date"`
RegularDate string `orm:"column(regular_date);type(date);null" json:"regular_date"`
LeaveDate string `orm:"column(leave_date);type(date);null" json:"leave_date"`
HireDate *time.Time `orm:"column(hire_date);type(date);null" json:"hire_date"`
RegularDate *time.Time `orm:"column(regular_date);type(date);null" json:"regular_date"`
LeaveDate *time.Time `orm:"column(leave_date);type(date);null" json:"leave_date"`
EmploymentStatus int8 `orm:"column(employment_status);default(2)" json:"employment_status"`
Remark string `orm:"column(remark);type(text);null" json:"remark"`
IsDeleted int8 `orm:"column(is_deleted);default(0)" json:"is_deleted"`
@@ -51,8 +51,8 @@ type BackendEmployeeFileRecord struct {
Title string `orm:"column(title);size(100);default()" json:"title"`
SubTitle string `orm:"column(sub_title);size(100);default()" json:"sub_title"`
Extra string `orm:"column(extra);size(100);default()" json:"extra"`
StartDate string `orm:"column(start_date);type(date);null" json:"start_date"`
EndDate string `orm:"column(end_date);type(date);null" json:"end_date"`
StartDate *time.Time `orm:"column(start_date);type(date);null" json:"start_date"`
EndDate *time.Time `orm:"column(end_date);type(date);null" json:"end_date"`
Description string `orm:"column(description);type(text);null" json:"description"`
AttachmentURL string `orm:"column(attachment_url);size(500);default()" json:"attachment_url"`
Sort int `orm:"column(sort);default(0)" json:"sort"`