| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhWxOpenAdmin".
- *
- * @property int $id
- * @property string $mobile 手机号
- * @property string $avatar 头像
- * @property string $adminName 管理员姓名
- * @property string $password 密码
- * @property int $roleId 角色id
- * @property string $province 省
- * @property string $city 市
- * @property string $dist 区县
- * @property string $address 详细街道地址
- * @property string $latitude 纬度
- * @property string $longitude 经度
- * @property string $precision 精度
- * @property string $openId 微信openid
- * @property int $merchantId 平台所属的商家id
- * @property int $userId 管理员的信息从用户表里哪个id复制过来的
- * @property int $wxOpenId 管理员属于哪个开放平台
- * @property string $unionId 微信unionId
- * @property int $subscribe 关注微信公众号 0未关注 1关注
- * @property int $status 帐户状态 0正常 1冻结
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhWxOpenAdmin extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhWxOpenAdmin';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['roleId', 'merchantId', 'userId', 'wxOpenId', 'subscribe', 'status'], 'integer'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['mobile'], 'string', 'max' => 15],
- [['avatar'], 'string', 'max' => 200],
- [['adminName'], 'string', 'max' => 50],
- [['password', 'openId', 'unionId'], 'string', 'max' => 100],
- [['province', 'city', 'dist', 'address', 'latitude', 'longitude', 'precision'], 'string', 'max' => 20],
- [['openId'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mobile' => 'Mobile',
- 'avatar' => 'Avatar',
- 'adminName' => 'Admin Name',
- 'password' => 'Password',
- 'roleId' => 'Role ID',
- 'province' => 'Province',
- 'city' => 'City',
- 'dist' => 'Dist',
- 'address' => 'Address',
- 'latitude' => 'Latitude',
- 'longitude' => 'Longitude',
- 'precision' => 'Precision',
- 'openId' => 'Open ID',
- 'merchantId' => 'Merchant ID',
- 'userId' => 'User ID',
- 'wxOpenId' => 'Wx Open ID',
- 'unionId' => 'Union ID',
- 'subscribe' => 'Subscribe',
- 'status' => 'Status',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|