SaasDistribution.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%saas_distribution}}".
  11. *
  12. * @property integer $id
  13. * @property integer $saas_id
  14. * @property string $platform_open_id
  15. * @property string $ali_name
  16. * @property string $name
  17. * @property integer $is_delete
  18. * @property integer $created_at
  19. */
  20. class SaasDistribution extends \yii\db\ActiveRecord
  21. {
  22. /**
  23. * @inheritdoc
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%saas_distribution}}';
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['saas_id'], 'required'],
  36. [['saas_id','wechat_type'], 'integer'],
  37. [['name','ali_name','platform_open_id'], 'string']
  38. ];
  39. }
  40. /**
  41. * @inheritdoc
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'saas_id' => 'Saas ID',
  48. 'platform_open_id' => '微信 open_id',
  49. 'wechat_type' => '获取微信openId',
  50. 'ali_name' => '支付宝账户名称',
  51. 'name' => '真实姓名',
  52. 'is_delete' => '是否已删除',
  53. 'created_at' => '创建时间'
  54. ];
  55. }
  56. }