common.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. // Copyright 2019 github.com. All rights reserved.
  2. // Use of this source code is governed by github.com.
  3. package consts
  4. const (
  5. PageSize = 10
  6. TimeSecondLayOut = "2006-01-02 15:04:05"
  7. DayLayOut = "2006-01-02"
  8. HalfMinSecond = 30
  9. MinSecond = 60
  10. )
  11. // 人员状态
  12. const (
  13. StaffNew = 0
  14. StaffStayDownload = 1
  15. StaffAlreadyDownload = 2
  16. StaffStayDelete = 3
  17. )
  18. // 员工类型
  19. const (
  20. ManagementStaff = 1
  21. LaborStaff = 2
  22. )
  23. // 反馈类型
  24. const (
  25. DeleteSucess = 0
  26. DeleteFail = 1
  27. DownLoadSucess = 2
  28. DownLoadFail = 3
  29. )
  30. const (
  31. DeviceOffline = 0
  32. DeviceOnline = 1
  33. )
  34. const ()
  35. const (
  36. DeviceOfflineCode = "O001"
  37. AccessControlDeviceName = "门禁设备"
  38. AccessControlDeviceCode = 3
  39. )
  40. var IDCardType = map[int]string{
  41. 1:"身份证",
  42. 2:"护照",
  43. }
  44. var PoliticsType = map[int]string{
  45. 1:"中共党员",
  46. 2:"中共预备党员",
  47. 3:"共青团员",
  48. 4:"民革党员",
  49. 5:"民盟盟员",
  50. 6:"民建会员",
  51. 7:"民进会员",
  52. 8:"农工党党员",
  53. 9:"致公党党员",
  54. 10:"九三学社社员",
  55. 11:"台盟盟员",
  56. 12:"无党派人士",
  57. 13:"群众",
  58. }
  59. var CultureLevelType = map[int]string{
  60. 1:"小学",
  61. 2:"初中",
  62. 3:"高中",
  63. 4:"中专",
  64. 5:"大专",
  65. 6:"本科",
  66. 7:"硕士",
  67. 8:"博士",
  68. 99:"其他",
  69. }
  70. var NationIntMap = map[int]string{
  71. 1:"汉族",
  72. 2:"蒙古族",
  73. 3:"回族",
  74. 4:"藏族",
  75. 5:"维吾尔族",
  76. 6:"苗族",
  77. 7:"彝族",
  78. 8:"壮族",
  79. 9:"布依族",
  80. 10:"朝鲜族",
  81. 11:"满族",
  82. 12:"侗族",
  83. 13:"瑶族",
  84. 14:"白族",
  85. 15:"土家族",
  86. 16:"哈尼族",
  87. 17:"哈萨克族",
  88. 18:"傣族",
  89. 19:"黎族",
  90. 20:"傈僳族",
  91. 21:"佤族",
  92. 22:"畲族",
  93. 23:"高山族",
  94. 24:"拉祜族",
  95. 25:"水族",
  96. 26:"东乡族",
  97. 27:"纳西族",
  98. 28:"景颇族",
  99. 29:"柯尔克孜族",
  100. 30:"土族",
  101. 31:"达斡尔族",
  102. 32:"仫佬族",
  103. 33:"羌族",
  104. 34:"布朗族",
  105. 35:"撒拉族",
  106. 36:"毛难族",
  107. 37:"仡佬族",
  108. 38:"锡伯族",
  109. 39:"阿昌族",
  110. 40:"普米族",
  111. 41:"塔吉克族",
  112. 42:"怒族",
  113. 43:"乌孜别克族",
  114. 44:"俄罗斯族",
  115. 45:"鄂温克族",
  116. 46:"德昂族",
  117. 47:"保安族",
  118. 48:"裕固族",
  119. 49:"京族",
  120. 50:"塔塔尔族",
  121. 51:"独龙族",
  122. 52:"鄂伦春族",
  123. 53:"赫哲族",
  124. 54:"门巴族",
  125. 55:"珞巴族",
  126. 56:"基诺族",
  127. }
  128. var NationStrMap = map[string]string{
  129. "HA":"汉族",
  130. "MG":"蒙古族",
  131. "HU":"回族",
  132. "ZA":"藏族",
  133. "UG":"维吾尔族",
  134. "MH":"苗族",
  135. "YI":"彝族",
  136. "ZH":"壮族",
  137. "BY":"布依族",
  138. "CS":"朝鲜族",
  139. "MA":"满族",
  140. "DO":"侗族",
  141. "YA":"瑶族",
  142. "BA":"白族",
  143. "TJ":"土家族",
  144. "HN":"哈尼族",
  145. "KZ":"哈萨克族",
  146. "DA":"傣族",
  147. "LI":"黎族",
  148. "LS":"傈僳族",
  149. "VA":"佤族",
  150. "SH":"畲族",
  151. "GS":"高山族",
  152. "LH":"拉祜族",
  153. "SU":"水族",
  154. "DX":"东乡族",
  155. "NX":"纳西族",
  156. "JP":"景颇族",
  157. "KG":"柯尔克孜族",
  158. "TU":"土族",
  159. "DU":"达斡尔族",
  160. "ML":"仫佬族",
  161. "QI":"羌族",
  162. "BL":"布朗族",
  163. "SL":"撒拉族",
  164. "MN":"毛难族",
  165. "GL":"仡佬族",
  166. "XB":"锡伯族",
  167. "AC":"阿昌族",
  168. "PM":"普米族",
  169. "TA":"塔吉克族",
  170. "NU":"怒族",
  171. "UZ":"乌孜别克族",
  172. "RS":"俄罗斯族",
  173. "EW":"鄂温克族",
  174. "DE":"德昂族",
  175. "BN":"保安族",
  176. "YG":"裕固族",
  177. "GI":"京族",
  178. "TT":"塔塔尔族",
  179. "DR":"独龙族",
  180. "OR":"鄂伦春族",
  181. "HZ":"赫哲族",
  182. "MB":"门巴族",
  183. "LB":"珞巴族",
  184. "JN":"基诺族",
  185. }
  186. var NationIntStr = map[int]string{
  187. 1: "HA",
  188. 2: "MG",
  189. 3: "HU",
  190. 4: "ZA",
  191. 5: "UG",
  192. 6: "MH",
  193. 7: "YI",
  194. 8: "ZH",
  195. 9: "BY",
  196. 10:"CS",
  197. 11:"MA",
  198. 12:"DO",
  199. 13:"YA",
  200. 14:"BA",
  201. 15:"TJ",
  202. 16:"HN",
  203. 17:"KZ",
  204. 18:"DA",
  205. 19:"LI",
  206. 20:"LS",
  207. 21:"VA",
  208. 22:"SH",
  209. 23:"GS",
  210. 24:"LH",
  211. 25:"SU",
  212. 26:"DX",
  213. 27:"NX",
  214. 28:"JP",
  215. 29:"KG",
  216. 30:"TU",
  217. 31:"DU",
  218. 32:"ML",
  219. 33:"QI",
  220. 34:"BL",
  221. 35:"SL",
  222. 36:"MN",
  223. 37:"GL",
  224. 38:"XB",
  225. 39:"AC",
  226. 40:"PM",
  227. 41:"TA",
  228. 42:"NU",
  229. 43:"UZ",
  230. 44:"RS",
  231. 45:"EW",
  232. 46:"DE",
  233. 47:"BN",
  234. 48:"YG",
  235. 49:"GI",
  236. 50:"TT",
  237. 51:"DR",
  238. 52:"OR",
  239. 53:"HZ",
  240. 54:"MB",
  241. 55:"LB",
  242. 56:"JN",
  243. }