wechat_models.go 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. package models
  2. type WechatComponents struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. ComponentAppid string `gorm:"column:component_appid" json:"component_appid" form:"component_appid"`
  5. ComponentAppsecret string `gorm:"column:component_appsecret" json:"component_appsecret" form:"component_appsecret"`
  6. ComponentVerifyTicket string `gorm:"column:component_verify_ticket" json:"component_verify_ticket" form:"component_verify_ticket"`
  7. ComponentAccessToken string `gorm:"column:component_access_token" json:"component_access_token" form:"component_access_token"`
  8. PreAuthCode string `gorm:"column:pre_auth_code" json:"pre_auth_code" form:"pre_auth_code"`
  9. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  10. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  11. ComponentStatus int64 `gorm:"column:component_status" json:"component_status" form:"component_status"`
  12. }
  13. func (WechatComponents) TableName() string {
  14. return "sgj_patient_wechat_components"
  15. }
  16. type PatientAuthorizations struct {
  17. ID int64 `gorm:"column:id" json:"id" form:"id"`
  18. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  19. AuthorizerAppid string `gorm:"column:authorizer_appid" json:"authorizer_appid" form:"authorizer_appid"`
  20. AuthorizerAccessToken string `gorm:"column:authorizer_access_token" json:"authorizer_access_token" form:"authorizer_access_token"`
  21. AuthorizerRefreshToken string `gorm:"column:authorizer_refresh_token" json:"authorizer_refresh_token" form:"authorizer_refresh_token"`
  22. AuthorizerJsapiTicket string `gorm:"column:authorizer_jsapi_ticket" json:"authorizer_jsapi_ticket" form:"authorizer_jsapi_ticket"`
  23. AuthorizerFuncscopeCategory string `gorm:"column:authorizer_funcscope_category" json:"authorizer_funcscope_category" form:"authorizer_funcscope_category"`
  24. AuthorizerNickName string `gorm:"column:authorizer_nick_name" json:"authorizer_nick_name" form:"authorizer_nick_name"`
  25. AuthorizerHeadImg string `gorm:"column:authorizer_head_img" json:"authorizer_head_img" form:"authorizer_head_img"`
  26. AuthorizerServiceTypeInfo int64 `gorm:"column:authorizer_service_type_info" json:"authorizer_service_type_info" form:"authorizer_service_type_info"`
  27. AuthorizerVerifyTypeInfo int64 `gorm:"column:authorizer_verify_type_info" json:"authorizer_verify_type_info" form:"authorizer_verify_type_info"`
  28. AuthorizerUserName string `gorm:"column:authorizer_user_name" json:"authorizer_user_name" form:"authorizer_user_name"`
  29. AuthorizerPrincipalName string `gorm:"column:authorizer_principal_name" json:"authorizer_principal_name" form:"authorizer_principal_name"`
  30. AuthorizerBusinessInfo string `gorm:"column:authorizer_business_info" json:"authorizer_business_info" form:"authorizer_business_info"`
  31. AuthorizerQrcodeUrl string `gorm:"column:authorizer_qrcode_url" json:"authorizer_qrcode_url" form:"authorizer_qrcode_url"`
  32. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  33. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  34. AuthorizerStatus int64 `gorm:"column:authorizer_status" json:"authorizer_status" form:"authorizer_status"`
  35. }
  36. func (PatientAuthorizations) TableName() string {
  37. return "sgj_patient_authorizations"
  38. }
  39. //type AuthorizationMessageManagements struct {
  40. // ID int64 `gorm:"column:id" json:"id" form:"id"`
  41. // UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  42. // MessageMsgEvent string `gorm:"column:message_msg_event" json:"message_msg_event" form:"message_msg_event"`
  43. // MessageMsgType string `gorm:"column:message_msg_type" json:"message_msg_type" form:"message_msg_type"`
  44. // MessageKeyType int64 `gorm:"column:message_key_type" json:"message_key_type" form:"message_key_type"`
  45. // MessageRegularName string `gorm:"column:message_regular_name" json:"message_regular_name" form:"message_regular_name"`
  46. // MessageKeyName string `gorm:"column:message_key_name" json:"message_key_name" form:"message_key_name"`
  47. // MessageContent string `gorm:"column:message_content" json:"message_content" form:"message_content"`
  48. // CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  49. // UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  50. // MessageStatus int64 `gorm:"column:message_status" json:"message_status" form:"message_status"`
  51. //}
  52. type AuthorizationMessageManagements struct {
  53. ID int64 `gorm:"column:id" json:"id" form:"id"`
  54. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  55. MessageMsgEvent string `gorm:"column:message_msg_event" json:"message_msg_event" form:"message_msg_event"`
  56. MessageMsgType string `gorm:"column:message_msg_type" json:"message_msg_type" form:"message_msg_type"`
  57. MessageKeyType int64 `gorm:"column:message_key_type" json:"message_key_type" form:"message_key_type"`
  58. MessageRegularName string `gorm:"column:message_regular_name" json:"message_regular_name" form:"message_regular_name"`
  59. MessageKeyName string `gorm:"column:message_key_name" json:"message_key_name" form:"message_key_name"`
  60. MessageContent string `gorm:"column:message_content" json:"message_content" form:"message_content"`
  61. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  62. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  63. MessageStatus int64 `gorm:"column:message_status" json:"message_status" form:"message_status"`
  64. }
  65. func (AuthorizationMessageManagements) TableName() string {
  66. return "sgj_patient_authorization_message_managements"
  67. }
  68. type AuthorizationButtons struct {
  69. ID int64 `gorm:"column:id" json:"id"`
  70. UserOrgID int64 `gorm:"column:user_org_id" json:"user_org_id"`
  71. ButtonFileds string `gorm:"column:button_fileds" json:"button_fileds"`
  72. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  73. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  74. ButtonStatus int64 `gorm:"column:button_status" json:"button_status"`
  75. SendStatus int64 `gorm:"column:send_status" json:"send_status"`
  76. }
  77. func (AuthorizationButtons) TableName() string {
  78. return "sgj_patient_authorization_buttons"
  79. }
  80. type WechatMedias struct {
  81. ID int64 `gorm:"column:id" json:"id" form:"id"`
  82. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  83. Msgtype string `gorm:"column:msgtype" json:"msgtype" form:"msgtype"`
  84. MediaId string `gorm:"column:media_id" json:"media_id" form:"media_id"`
  85. MediaTitle string `gorm:"column:media_title" json:"media_title" form:"media_title"`
  86. MediaDescription string `gorm:"column:media_description" json:"media_description" form:"media_description"`
  87. MediaUrl string `gorm:"column:media_url" json:"media_url" form:"media_url"`
  88. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  89. MediaStatus int64 `gorm:"column:media_status" json:"media_status" form:"media_status"`
  90. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  91. }
  92. func (WechatMedias) TableName() string {
  93. return "sgj_patient_wechat_medias"
  94. }