sign.models.go 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package models
  2. type NewContract struct {
  3. ContractId string `json:"contractId"`
  4. Signers []struct {
  5. UserId string `json:"userId"`
  6. SignerType int64 `json:"signerType"`
  7. EnterpriseId string `json:"enterpriseId"`
  8. Sequence string `json:"sequence"`
  9. SendMsg string `json:"sendMsg"`
  10. SignFiles []struct {
  11. DocId float64 `json:"docId"`
  12. XySignControls []struct {
  13. Key string `json:"key"`
  14. Type string `json:"type"`
  15. PageNum int64 `json:"pageNum"`
  16. PositionX int64 `json:"positionX"`
  17. PositionY int64 `json:"positionY"`
  18. } `json:"xySignControls"`
  19. KeywordSignControls []struct {
  20. Key string `json:"key"`
  21. Type string `json:"type"`
  22. PageNum int64 `json:"pageNum"`
  23. OffsetX int64 `json:"offsetX"`
  24. OffsetY int64 `json:"offsetY"`
  25. } `json:"keywordSignControls"`
  26. } `json:"signFiles"`
  27. }
  28. }
  29. type XySignControls struct {
  30. Key string `json:"key"`
  31. Type string `json:"type"`
  32. PageNum int64 `json:"pageNum"`
  33. PositionX int64 `json:"positionX"`
  34. PositionY int64 `json:"positionY"`
  35. }
  36. type KeywordSignControls struct {
  37. Key string `json:"key"`
  38. Type string `json:"type"`
  39. PageNum int64 `json:"pageNum"`
  40. KeyWord string `json:"KeyWord"`
  41. OffsetX int64 `json:"offsetX"`
  42. OffsetY int64 `json:"offsetY"`
  43. }
  44. type SignFiles struct {
  45. DocId float64 `json:"343465645"`
  46. XySignControls []struct {
  47. Key string `json:"key"`
  48. Type string `json:"type"`
  49. PageNum string `json:"pageNum"`
  50. PositionX string `json:"positionX"`
  51. PositionY string `json:"positionY"`
  52. } `json:"xySignControls"`
  53. KeywordSignControls []struct {
  54. Key string `json:"key"`
  55. Type string `json:"type"`
  56. PageNum string `json:"pageNum"`
  57. KeyWord string `json:"KeyWord"`
  58. PositionX string `json:"positionX"`
  59. PositionY string `json:"positionY"`
  60. } `json:"keywordSignControls"`
  61. }
  62. type Signers struct {
  63. UserId string `json:"userId"`
  64. SignerType int64 `json:"signerType"`
  65. EnterpriseId string `json:"enterpriseId"`
  66. Sequence string `json:"sequence"`
  67. SendMsg string `json:"sendMsg"`
  68. SignFiles []struct {
  69. DocId float64 `json:"docId"`
  70. XySignControls []struct {
  71. Key string `json:"key"`
  72. Type string `json:"type"`
  73. PageNum int64 `json:"pageNum"`
  74. PositionX int64 `json:"positionX"`
  75. PositionY int64 `json:"positionY"`
  76. } `json:"xySignControls"`
  77. KeywordSignControls []struct {
  78. Key string `json:"key"`
  79. Type string `json:"type"`
  80. PageNum int64 `json:"pageNum"`
  81. OffsetX int64 `json:"offsetX"`
  82. OffsetY int64 `json:"offsetY"`
  83. } `json:"keywordSignControls"`
  84. } `json:"signFiles"`
  85. }