25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

request.go 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package proto
  2. const (
  3. //PushFeatureDeal 接收风险特征处置结果接口
  4. PushFeatureDeal = "/ndToZy/pushFeatureDeal"
  5. //PushUserInfo 获取用户信息接口
  6. PushUserInfo = "/ndToZy/pushUserInfo"
  7. //PushFeatureInfo 推送的风险结果信息
  8. PushFeatureInfo = "/ndToZy/pushFeatureInfo"
  9. )
  10. //SignServiceRequest 签名服务接口请求格式
  11. type SignServiceRequest struct {
  12. Obj string `json:"obj"`
  13. }
  14. //ZyBaseRequest 中研服务请求
  15. type ZyBaseRequest struct {
  16. Data string `json:"data"`
  17. Sign string `json:"sign"`
  18. Source string `json:"source"`
  19. Salt string `json:"salt"`
  20. Key string `json:"key"`
  21. }
  22. //PushFeatureDealRequest 接收风险特征处置结果接口
  23. type PushFeatureDealRequest struct {
  24. FeatureId string `json:"featureId" description:"风险特征ID"`
  25. UserId string `json:"userId" description:"风险触发用户ID"`
  26. ObjectId string `json:"objectId" description:"风险对象ID,4.1接口推送的objectId"`
  27. DealId string `json:"dealId" description:"处置人ID"`
  28. DealName string `json:"dealName" description:"处置人姓名"`
  29. DealTime string `json:"dealTime" description:"处置时间,格式YYYY-MM-DD HH:MI:SS"`
  30. DealStatus string `json:"dealStatus" description:"处置状态(1已处置、0未处置、2不处置)"`
  31. DealResult string `json:"dealResult" description:"处置结果"`
  32. }
  33. //PushUserInfoRequest 获取用户信息接口
  34. type PushUserInfoRequest struct {
  35. UserId string `json:"userId" description:"用户ID"`
  36. UserName string `json:"userName" description:"用户名"`
  37. Name string `json:"name" description:"姓名"`
  38. Position string `json:"position" description:"岗位"`
  39. Job string `json:"job" description:"职务"`
  40. DeptId string `json:"deptId" description:"所在部门/业务处室编码"`
  41. DeptName string `json:"deptName" description:"所在部门/业务处室名称"`
  42. LogTime string `json:"logTime" description:"登录时间"`
  43. LogError string `json:"logError" description:"登录密码错误次数"`
  44. Regorg string `json:"regorg" description:"登记机关"`
  45. }
  46. //PushFeatureInfo 推送的风险结果信息
  47. type PushFeatureInfoRequest struct {
  48. FeatureId string `json:"featureId" description:"风险特征ID"`
  49. FeatureName string `json:"featureName" description:"风险名称"`
  50. FeatureLevel string `json:"featureLevel" description:"风险等级"`
  51. FeatureDeptId string `json:"featureDeptId" description:"风险所属部门"`
  52. FeatureTime string `json:"featureTime" description:"触发时间,精确到时分秒"`
  53. ObjectList []struct {
  54. ObjId string `json:"objId" description:"对象ID(用户ID)"`
  55. ObjName string `json:"objName" description:"对象名称(用户姓名)"`
  56. ObjRegorg string `json:"objRegorg" description:"对象所在登记机关"`
  57. ObjDeptid string `json:"objDeptid" description:"对象所在部门"`
  58. ObjPosition string `json:"objPosition" description:"对象所在岗位"`
  59. IsDeal string `json:"isDeal" description:"是否处置(1已处置;0未处置)"`
  60. DealId string `json:"dealId" description:"处置人ID"`
  61. DealName string `json:"dealName" description:"处置人姓名"`
  62. DealTime string `json:"dealTime" description:"处置时间"`
  63. DealStatus string `json:"dealStatus" description:"处置状态(0未处置;1已处置)"`
  64. DealResult string `json:"dealResult" description:"处置结果"`
  65. } `json:"objectList" description:"风险对象列表"`
  66. }
  67. // HealthRequest 健康检查请求结构
  68. type HealthRequest struct{}