区分权限

hmxc
小赖 4 years ago
parent 930ed0e3dc
commit c2829ca922

@ -4,6 +4,18 @@ class UserInfoModel {
String nickName; String nickName;
List<int> jurisdiction; List<int> jurisdiction;
///()
bool get canSendTicket => jurisdiction.contains(52);
///
bool get canPickUpTicket => jurisdiction.contains(53);
///
bool get canPass => jurisdiction.contains(55);
///
bool get canOperation => jurisdiction.contains(57);
UserInfoModel({this.id, this.roleId, this.nickName, this.jurisdiction}); UserInfoModel({this.id, this.roleId, this.nickName, this.jurisdiction});
UserInfoModel.fromJson(Map<String, dynamic> json) { UserInfoModel.fromJson(Map<String, dynamic> json) {

@ -8,7 +8,6 @@ import 'package:flutter/material.dart';
// Package imports: // Package imports:
import 'package:common_utils/common_utils.dart'; import 'package:common_utils/common_utils.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:velocity_x/velocity_x.dart';
// Project imports: // Project imports:
import 'package:aku_community_manager/style/app_style.dart'; import 'package:aku_community_manager/style/app_style.dart';

Loading…
Cancel
Save