mcn_pay.go 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package model
  2. import xtime "go-common/library/time"
  3. // MCNSignPay State .
  4. const (
  5. MCNStateNoPay = int8(1)
  6. MCNStatePayed = int8(2)
  7. MCNStateDeled = int8(100)
  8. )
  9. // MCNSign struct .
  10. type MCNSign struct {
  11. ID int64 `json:"id"`
  12. MCNMID int64 `json:"mcn_mid"`
  13. MCNName string `json:"mcn_name"`
  14. CompanyName string `json:"company_name"`
  15. CompanyLicenseID string `json:"company_license_id"`
  16. CompanyLicenseLink string `json:"company_license_link"`
  17. ContractLink string `json:"contract_link"`
  18. ContactName string `json:"contact_name"`
  19. ContactTitle string `json:"contact_title"`
  20. ContactIdcard string `json:"contact_idcard"`
  21. ContactPhone string `json:"contact_phone"`
  22. BeginDate xtime.Time `json:"begin_date"`
  23. EndDate xtime.Time `json:"end_date"`
  24. State MCNSignState `json:"state"`
  25. RejectTime xtime.Time `json:"reject_time"`
  26. RejectReason string `json:"reject_reason"`
  27. Ctime xtime.Time `json:"ctime"`
  28. Mtime xtime.Time `json:"mtime"`
  29. Permission uint32 `json:"permission"`
  30. Permits *Permits `json:"permits"` // 权限集合
  31. }
  32. // AttrPermitVal get Permission all.
  33. func (n *MCNSign) AttrPermitVal() {
  34. n.Permits = &Permits{}
  35. n.Permits.SetAttrPermitVal(n.Permission)
  36. }
  37. // MCNSignPay struct .
  38. type MCNSignPay struct {
  39. ID int64 `json:"id"`
  40. MID int64 `json:"mid"`
  41. SignID int64 `json:"sign_id"`
  42. DueDate string `json:"due_date"`
  43. PayValue int64 `json:"pay_value"`
  44. State int8 `json:"state"`
  45. Note string `json:"note"`
  46. Ctime string `json:"ctime"`
  47. Mtime string `json:"mtime"`
  48. }
  49. // MCNUP struct .
  50. type MCNUP struct {
  51. SignID int64 `json:"sign_id"`
  52. MCNMID int64 `json:"mcn_mid"`
  53. UPMID int64 `json:"up_mid"`
  54. BeginDate xtime.Time `json:"begin_date"`
  55. EndDate xtime.Time `json:"end_date"`
  56. ContractLink string `json:"contract_link"`
  57. UPAuthLink string `json:"up_auth_link"`
  58. RejectReason string `json:"reject_reason"`
  59. RejectTime xtime.Time `json:"reject_time"`
  60. State MCNUPState `json:"state"`
  61. StateChangeTime xtime.Time `json:"state_change_time"`
  62. Ctime xtime.Time `json:"ctime"`
  63. Mtime xtime.Time `json:"mtime"`
  64. UpType int8 `json:"up_type"`
  65. SiteLink string `json:"site_link"`
  66. ConfirmTime xtime.Time `json:"confirm_time"`
  67. Permission uint32 `json:"permission"`
  68. PublicationPrice int64 `json:"publication_price"`
  69. Permits *Permits `json:"permits"` // 权限集合
  70. }
  71. // AttrPermitVal get Permission all.
  72. func (n *MCNUP) AttrPermitVal() {
  73. n.Permits = &Permits{}
  74. n.Permits.SetAttrPermitVal(n.Permission)
  75. }