factory worker post
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package dao
|
||||
|
||||
type GroupCreate struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:char(30);comment:组名;NOT NULL" json:"name"`
|
||||
Account string `gorm:"column:account;type:varchar(100);comment:账号;NOT NULL" json:"account"`
|
||||
Password string `gorm:"column:password;type:varchar(255);comment:密码" json:"password"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type GroupStatus struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type GroupInfo struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:char(30);comment:组名;NOT NULL" json:"name"`
|
||||
Account string `gorm:"column:account;type:varchar(100);comment:账号;NOT NULL" json:"account"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type GroupPassword struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Password string `gorm:"column:password;type:varchar(255);comment:密码" json:"password"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type GroupName struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:char(30);comment:组名;NOT NULL" json:"name"`
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package dao
|
||||
|
||||
type LogInfo struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Content string `gorm:"column:content;type:text;comment:内容;NOT NULL" json:"content"`
|
||||
ObjId int64 `gorm:"column:obj_id;type:int(11);comment:对象ID;NOT NULL" json:"obj_id"`
|
||||
ObjType int32 `gorm:"column:obj_type;type:tinyint(1);comment:对象类型,1为职位,2为组,3为工人,4请假;NOT NULL" json:"obj_type"`
|
||||
Type int32 `gorm:"column:type;type:tinyint(1);default:1;comment:类型,1为登录,2为登出,3修改,4为添加,5状态;NOT NULL" json:"type"`
|
||||
IsStatistics string `gorm:"column:is_statistics;type:enum('1','2');default:2;comment:是否统计过,1为统计过,2为未统计" json:"is_statistics"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type LogCreate struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Content string `gorm:"column:content;type:text;comment:内容;NOT NULL" json:"content"`
|
||||
ObjId int64 `gorm:"column:obj_id;type:int(11);comment:对象ID;NOT NULL" json:"obj_id"`
|
||||
ObjType int32 `gorm:"column:obj_type;type:tinyint(1);comment:对象类型,1为职位,2为组,3为工人,4请假;NOT NULL" json:"obj_type"`
|
||||
Type int32 `gorm:"column:type;type:tinyint(1);default:1;comment:类型,1为登录,2为登出,3修改,4为添加,5状态;NOT NULL" json:"type"`
|
||||
IsStatistics string `gorm:"column:is_statistics;type:enum('1','2');default:2;comment:是否统计过,1为统计过,2为未统计" json:"is_statistics"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package dao
|
||||
|
||||
type PostCreate struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:char(30);comment:姓名;NOT NULL" json:"name"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态,1为正常,2为禁用,默认1;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type PostStatus struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态,1为正常,2为禁用,默认1;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type PostInfo struct {
|
||||
Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:char(30);comment:姓名;NOT NULL" json:"name"`
|
||||
Status uint8 `gorm:"column:status;type:tinyint(1);default:1;comment:状态,1为正常,2为禁用,默认1;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
AdminId int `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type PostName struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:char(30);comment:姓名;NOT NULL" json:"name"`
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package dao
|
||||
|
||||
type WorkerCreate struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:char(30);comment:姓名;NOT NULL" json:"name"`
|
||||
Mobile string `gorm:"column:mobile;type:char(12);comment:手机号" json:"mobile"`
|
||||
GroupId int64 `gorm:"column:group_id;type:int(11);default:0;comment:小组ID" json:"group_id"`
|
||||
PostId int64 `gorm:"column:post_id;type:int(11);default:0;comment:岗位ID" json:"post_id"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type WorkerStatus struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type WorkerInfo struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:char(30);comment:姓名;NOT NULL" json:"name"`
|
||||
Mobile string `gorm:"column:mobile;type:char(12);comment:手机号" json:"mobile"`
|
||||
GroupId int64 `gorm:"column:group_id;type:int(11);default:0;comment:小组ID" json:"group_id"`
|
||||
GroupName string `gorm:"-" json:"group_name"`
|
||||
PostId int64 `gorm:"column:post_id;type:int(11);default:0;comment:岗位ID" json:"post_id"`
|
||||
PostName string `gorm:"-" json:"post_name"`
|
||||
Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态;NOT NULL" json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(50)" json:"admin_name"`
|
||||
}
|
||||
|
||||
type WorkerName struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:char(30);comment:姓名;NOT NULL" json:"name"`
|
||||
}
|
||||
Reference in New Issue
Block a user