You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
4.0 KiB

  1. package base
  2. import (
  3. "LAPP_LF_MOM_BACKEND/container"
  4. "LAPP_LF_MOM_BACKEND/services/base/implments"
  5. )
  6. /******************************************************************************
  7. *
  8. * @Interface Name : SignService
  9. *-----------------------------------------------------------------------------
  10. *
  11. * @Description : 签到签退服务接口
  12. *
  13. * @Author : 代码生成器创建
  14. *
  15. * @Date : 2021-03-18 23:20:31
  16. *
  17. ******************************************************************************/
  18. type SignService interface {
  19. /******************************************************************************
  20. *
  21. * @Function Name : SelectOneUser
  22. *-----------------------------------------------------------------------------
  23. *
  24. * @Description : 查找指定人员的用户名
  25. *
  26. * @Function Parameters : 当前访问人员信息
  27. *
  28. * @Function Parameters : 人员编号
  29. *
  30. * @Return Value : 人员姓名
  31. *
  32. * @Return Value : 执行时发生的错误
  33. *
  34. * @Author : chenglei.wei@le-it.com.cn
  35. *
  36. * @Date : 2021-03-25
  37. *
  38. ******************************************************************************/
  39. SelectOneUser(*container.RequestContext, string) (string, error)
  40. /******************************************************************************
  41. *
  42. * @Function Name : GetWorklines
  43. *-----------------------------------------------------------------------------
  44. *
  45. * @Description : 获取全部产线
  46. *
  47. * @Function Parameters : 当前访问人员信息
  48. *
  49. * @Return Value : 产线标识列表
  50. *
  51. * @Return Value : 执行时发生的错误
  52. *
  53. * @Author : chenglei.wei@le-it.com.cn
  54. *
  55. * @Date : 2021-03-25
  56. *
  57. ******************************************************************************/
  58. GetWorklines(*container.RequestContext) ([]string, error)
  59. /******************************************************************************
  60. *
  61. * @Function Name : GetWorkplacesOfWorkline
  62. *-----------------------------------------------------------------------------
  63. *
  64. * @Description : 返回产线工位信息
  65. *
  66. * @Function Parameters : 当前访问人员信息
  67. *
  68. * @Function Parameters : 产线标识
  69. *
  70. * @Return Value : 工位标识列表
  71. *
  72. * @Return Value : 执行时发生的错误
  73. *
  74. * @Author : chenglei.wei@le-it.com.cn
  75. *
  76. * @Date : 2021-03-25
  77. *
  78. ******************************************************************************/
  79. GetWorkplacesOfWorkline(*container.RequestContext, string) ([]string, error)
  80. /******************************************************************************
  81. *
  82. * @Function Name : SignIn
  83. *-----------------------------------------------------------------------------
  84. *
  85. * @Description : 签到
  86. *
  87. * @Function Parameters : 当前访问人员信息
  88. *
  89. * @Function Parameters : 人员编号
  90. *
  91. * @Function Parameters : 生产线标识
  92. *
  93. * @Return Value : 执行时发生的错误
  94. *
  95. * @Author : chenglei.wei@le-it.com.cn
  96. *
  97. * @Date : 2021-03-25
  98. *
  99. ******************************************************************************/
  100. SignIn(*container.RequestContext, string, string) error
  101. }
  102. /******************************************************************************
  103. *
  104. * @Function Name : NewPlantService
  105. *-----------------------------------------------------------------------------
  106. *
  107. * @Description : 创建一个PlantService
  108. *
  109. * @Return Value : PlantService实例
  110. *
  111. * @Author : 代码生成器创建
  112. *
  113. * @Date : 2021-03-18 23:20:31
  114. *
  115. ******************************************************************************/
  116. func NewSignService() SignService {
  117. return implments.NewSignServiceImplement()
  118. }