staff.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // Copyright 2019 github.com. All rights reserved.
  2. // Use of this source code is governed by github.com.
  3. package v1
  4. import (
  5. "smart-site-management-gateway/param/base"
  6. "smart-site-management-gateway/pb/v1"
  7. )
  8. type LatestStaffDataQuery struct {
  9. Page int32 `form:"page" json:"page"`
  10. }
  11. type LatestStaffDataRequest struct {
  12. base.Header
  13. LatestStaffDataQuery
  14. }
  15. type LatestStaffDataResponse struct {
  16. base.Result
  17. Data v1.LatestStaffDataReply `json:"data"`
  18. }
  19. type StaffWorkTypeStatisticsRequest struct {
  20. base.Header
  21. }
  22. type StaffWorkTypeStatisticsResponse struct {
  23. base.Result
  24. Data v1.StaffWorkTypeStatisticsReply `json:"data"`
  25. }
  26. type StaffTypeStatisticsRequest struct {
  27. base.Header
  28. }
  29. type StaffTypeStatisticsResponse struct {
  30. base.Result
  31. Data v1.StaffTypeStatisticsReply `json:"data"`
  32. }
  33. type LaborCompanyStatisticsRequest struct {
  34. base.Header
  35. }
  36. type LaborCompanyStatisticsResponse struct {
  37. base.Result
  38. Data v1.LaborCompanyStatisticsReply `json:"data"`
  39. }
  40. type StaffListQuery struct {
  41. Page int32 `form:"page"`
  42. Filter string `form:"filter"`
  43. }
  44. type StaffListRequest struct {
  45. base.Header
  46. StaffListQuery
  47. }
  48. type StaffListResponse struct {
  49. base.Result
  50. Data v1.StaffListReply `json:"data"`
  51. }
  52. type StaffAttendanceQuery struct {
  53. Page int32 `form:"page"`
  54. Filter string `form:"filter"`
  55. Start int64 `form:"start"`
  56. End int64 `form:"end"`
  57. }
  58. type StaffAttendanceRequest struct {
  59. base.Header
  60. StaffAttendanceQuery
  61. }
  62. type StaffAttendanceResponse struct {
  63. base.Result
  64. Data v1.StaffAttendanceReply `json:"data"`
  65. }