基础页面

This commit is contained in:
2022-10-20 14:21:39 +08:00
parent 49ad269c2b
commit 42ba10ec61
62 changed files with 5132 additions and 54 deletions

View File

@@ -0,0 +1,40 @@
// ignore_for_file: constant_identifier_names
import 'package:tencent_im_sdk_plugin/models/v2_tim_conversation.dart';
import 'package:tencent_im_sdk_plugin/models/v2_tim_user_full_info.dart';
class PrivateConversationModel {
String userID;
bool isFriend;
String friendRemark;
V2TimConversation? conversation;
V2TimUserFullInfo? userProfile;
bool isStaffer;
bool allowStranger; // 允许陌生人消息
String? shopId; // 他是哪个店铺的客服
PrivateConversationModel({
required this.userID,
this.friendRemark = '',
this.isFriend = false,
this.conversation,
this.userProfile,
this.isStaffer = false,
this.allowStranger = true,
this.shopId,
});
}
class UserRelationEnum {
/// 不是好友
static const int V2TIM_FRIEND_RELATION_TYPE_NONE = 0;
/// 对方在我的好友列表
static const int V2TIM_FRIEND_RELATION_TYPE_IN_MY_FRIEND_LIST = 1;
/// 我在对方的好友列表
static const int V2TIM_FRIEND_RELATION_TYPE_IN_OTHER_FRIEND_LIST = 2;
/// 表示对方在我的好友列表中
static const int V2TIM_FRIEND_RELATION_TYPE_BOTH_WAY = 3;
}