StoreMini.php 5.8 KB

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