123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-site-management-gateway/pb/v1";
- message LatestStaffDataRequest{
- int64 project_id = 1;
- }
- message LaststStaffData {
- // 工号
- string work_no = 1;
- // 打卡时间
- string recog_time = 2;
- // 进出
- int32 in_out = 3;
- // 照片
- string photo = 4;
- string name = 5;
- }
- message LatestStaffDataReply{
- // 工号
- string work_no = 1;
- // 打卡时间
- string recog_time = 2;
- // 进出
- int32 in_out = 3;
- // 照片
- string photo = 4;
- string name = 5;
- string group = 6;
- string work_type = 7;
- }
- message WorkTypeStatistics{
- // 工种
- string work_type = 1;
- // 总人数
- int64 total = 2;
- // 出勤人数
- int64 attendance = 3;
- int64 id = 4;
- }
- message StaffWorkTypeStatisticsRequest{
- int64 project_id = 1;
- }
- message StaffWorkTypeStatisticsReply{
- repeated WorkTypeStatistics list = 1;
- }
- message StaffTypeStatistics{
- // 员工类型
- string staff_type = 1;
- // 总人数
- int64 total = 2;
- // 出勤人数
- int64 attendance = 3;
- int32 type_code = 4;
- }
- message StaffTypeStatisticsRequest{
- int64 project_id = 1;
- }
- message StaffTypeStatisticsReply{
- repeated StaffTypeStatistics list = 1;
- int64 total_attendance = 2;
- int64 total_in = 3;
- }
- message LaborCompanyStatistics{
- // 员工类型
- string labor_company = 1;
- // 总人数
- int64 total = 2;
- // 出勤人数
- int64 attendance = 3;
- // 管理人员
- int64 manager_attendance = 4;
- // 劳务人员
- int64 labor_attendance = 5;
- }
- message LaborCompanyStatisticsRequest{
- int64 project_id = 1;
- }
- message LaborCompanyStatisticsReply{
- repeated LaborCompanyStatistics list = 1;
- }
- message StaffListRequest {
- int64 project_id = 1;
- int32 page = 2;
- int32 page_size = 3;
- string filter = 4;
- }
- message StaffListItem {
- int64 id = 1;
- int64 project_id = 2;
- // 工号
- string work_no = 3;
- // 姓名
- string name = 4;
- // 身分证
- string id_cert = 5;
- // 性别
- string gender = 6;
- // 员工类型
- string staff_type = 7;
- // 生日
- string birthday = 8;
- // 住址
- string address = 9;
- // 发证机关
- string id_issue = 10;
- // 证件有效期
- string id_period = 11;
- // 证件照片
- string id_photo = 12;
- // 现场人员红外照片
- string inf_photo = 13;
- // 现场人员可见光照片
- string photo = 14;
- // 设备编码
- string sn = 15;
- // 工种
- string work_type = 16;
- // 0 新增,1已下发(待确认) 2 已下发(成功) 3 待删除
- int32 status = 17;
- // 劳务公司
- string labor_company = 18;
- // 班组
- string group = 19;
- // 是否删除
- bool is_delete = 20;
- string created_at = 21;
- }
- message StaffListReply {
- int64 total = 1;
- int32 page = 2;
- int32 page_size = 3;
- repeated StaffListItem list = 4;
- }
- message StaffAttendanceRequest {
- int64 project_id = 1;
- int32 page = 2;
- int32 page_size = 3;
- string filter = 4;
- int64 start = 5;
- int64 end = 6;
- }
- message StaffAttendanceDesc {
- // 打卡时间
- string time = 1;
- // 进出
- string in_out = 2;
- bool is_in = 3;
- }
- message StaffAttendanceItem {
- int64 id = 1;
- string gender = 2;
- string name = 3;
- string work_type = 4;
- string staff_type = 5;
- string work_no = 6;
- string date = 7;
- // 一天的考勤记录
- repeated StaffAttendanceDesc list = 8;
- }
- message StaffAttendanceReply {
- int64 total = 1;
- int32 page = 2;
- int32 page_size = 3;
- repeated StaffAttendanceItem list = 4;
- }
|