scrm-go

wechat_models.go 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. func (AuthorizationMessageManagements) TableName() string {
  53. return "sgj_patient_authorization_message_managements"
  54. }
  55. type AuthorizationButtons struct {
  56. ID int64 `gorm:"column:id" json:"id"`
  57. UserOrgID int64 `gorm:"column:user_org_id" json:"user_org_id"`
  58. ButtonFileds string `gorm:"column:button_fileds" json:"button_fileds"`
  59. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  60. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  61. ButtonStatus int64 `gorm:"column:button_status" json:"button_status"`
  62. SendStatus int64 `gorm:"column:send_status" json:"send_status"`
  63. }
  64. func (AuthorizationButtons) TableName() string {
  65. return "sgj_patient_authorization_buttons"
  66. }