StoreWeChatSharer.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\behaviors\TimestampBehavior;
  9. /**
  10. * Class StoreMini
  11. * @package app\models
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property string $name
  15. * @property string $code
  16. * @property integer $code_type
  17. * @property string $legal_persona_wechat
  18. * @property string $legal_persona_name
  19. * @property integer $status
  20. * @property string $msg
  21. * @property string $mini_info
  22. * @property string $auth_code
  23. * @property string $authorization_info
  24. * @property string $appid
  25. * @property string $authorizer_access_token
  26. * @property string $authorizer_refresh_token
  27. * @property string $apply_mini_info
  28. * @property integer $mini_up
  29. * @property integer $is_cancle
  30. * @property string $mini_url
  31. * @property string $mini_up_error
  32. * @property integer $apply_name_status
  33. * @property string $apply_name
  34. * @property string $apply_name_error
  35. * @property integer $is_use
  36. * @property string $template_id
  37. * @property string $user_version
  38. * @property string $user_desc
  39. * @property string $ext
  40. * @property string $categories
  41. * @property string $signature
  42. * @property string $mini_nickname
  43. * @property string $license_pic
  44. * @property integer $merchant_id
  45. * @property integer $is_set_web
  46. * @property integer $qrcode_id
  47. * @property integer $fail_time
  48. * @property string $nickname_audit_id
  49. * @property string $nickname_audit_data
  50. * @property string $audit_id
  51. * @property integer $bind_food_qr
  52. * @property string $created_at
  53. * @property string $updated_at
  54. * @property integer $is_self
  55. * @property string $app_secret
  56. * @property string $webview_domain_name
  57. **/
  58. class StoreWeChatSharer extends \yii\db\ActiveRecord
  59. {
  60. /**
  61. * @var mixed|null
  62. */
  63. public $mini_info;
  64. /**
  65. * @inheritdoc
  66. */
  67. public static function tableName()
  68. {
  69. return '{{%store_wechat_sharer}}';
  70. }
  71. /**
  72. * @inheritdoc
  73. */
  74. public function rules()
  75. {
  76. return [
  77. [['id', 'store_id', 'code_type', 'status', 'mini_up', 'is_cancle', 'apply_name_status',
  78. 'is_use', 'merchant_id', 'is_set_web', 'qrcode_id', 'fail_time', 'bind_food_qr', 'is_self'], 'integer'],
  79. [["nickname_audit_id", "license_pic", "mini_nickname", "signature", "categories",
  80. 'apply_name', 'name', 'code', 'legal_persona_wechat', 'legal_persona_name', 'msg',
  81. "mini_info", "auth_code", "authorization_info", "appid", "authorizer_access_token",
  82. "authorizer_refresh_token", "apply_mini_info", "mini_url", "mini_up_error", "apply_name_error",
  83. "template_id", "user_version", "user_desc", "ext", "nickname_audit_data", "audit_id", 'app_secret', 'webview_domain_name'], 'string'],
  84. [['created_at', 'updated_at'], 'safe']
  85. ];
  86. }
  87. public function behaviors()
  88. {
  89. return [
  90. [
  91. 'class' => TimestampBehavior::class,
  92. ]
  93. ];
  94. }
  95. /**
  96. * @inheritdoc
  97. */
  98. public function attributeLabels()
  99. {
  100. return [
  101. 'id' => "ID",
  102. 'store_id' => "商城ID",
  103. 'name' => "企业名称",
  104. 'code' => "企业代码",
  105. 'code_type' => "企业代码类型(1:统一社会信用代码, 2:组织机构代码,3:营业执照注册号)",
  106. 'legal_persona_wechat' => "法人微信",
  107. 'legal_persona_name' => "法人姓名",
  108. 'status' => "申请状态",
  109. 'msg' => "申请状态信息",
  110. "mini_info" => "小程序信息",
  111. "auth_code" => "小程序授权码",
  112. "authorization_info" => "授权信息",
  113. "appid" => "appid",
  114. "authorizer_access_token" => "接口调用令牌",
  115. "authorizer_refresh_token" =>"接口刷新令牌",
  116. "apply_mini_info" => "申请小程序信息",
  117. "mini_up" => "代码上传状态",
  118. "is_cancle" => "是否取消授权",
  119. "mini_url" => "小程序码",
  120. 'mini_up_error' => "代码审核失败原因",
  121. "apply_name_status" => "申请名称状态",
  122. "apply_name" => "申请名称",
  123. "apply_name_error" => "失败原因",
  124. "is_use" => "是否暂停服务",
  125. "template_id" => "小程序模版ID",
  126. "user_version" => "小程序版本号",
  127. "user_desc" => "代码描述",
  128. "ext" => "ext",
  129. "categories" => "已有分类",
  130. "signature" => "简介",
  131. "license_pic" => "营业执照",
  132. "merchant_id" => "商户信息ID",
  133. "is_set_web" => "是否设置服务器域名",
  134. "qrcode_id" => "小程序二维码ID",
  135. "fail_time" => "失败返回时间",
  136. "nickname_audit_id" => "名称申请单ID",
  137. "nickname_audit_data" => "名称审核数据",
  138. "audit_id" => "审核单ID",
  139. "bind_food_qr" => "是否绑定点餐码",
  140. "created_at" => "",
  141. "updated_at" => "",
  142. 'is_self' => '是否自研',
  143. 'app_secret' => '',
  144. 'webview_domain_name' => '业务域名'
  145. ];
  146. }
  147. }