feat:增加dio网络请求
This commit is contained in:
@@ -4,29 +4,29 @@ part 'session.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class SaTokenInfo {
|
||||
String? tokenName;
|
||||
String? tokenValue;
|
||||
bool? isLogin;
|
||||
String tokenName;
|
||||
String tokenValue;
|
||||
bool isLogin;
|
||||
dynamic loginId;
|
||||
String? loginType;
|
||||
int? tokenTimeout;
|
||||
int? sessionTimeout;
|
||||
int? tokenSessionTimeout;
|
||||
int? tokenActiveTimeout;
|
||||
String? loginDeviceType;
|
||||
String loginType;
|
||||
int tokenTimeout;
|
||||
int sessionTimeout;
|
||||
int tokenSessionTimeout;
|
||||
int tokenActiveTimeout;
|
||||
String loginDeviceType;
|
||||
String? tag;
|
||||
|
||||
SaTokenInfo({
|
||||
this.tokenName,
|
||||
this.tokenValue,
|
||||
this.isLogin,
|
||||
this.loginId,
|
||||
this.loginType,
|
||||
this.tokenTimeout,
|
||||
this.sessionTimeout,
|
||||
this.tokenSessionTimeout,
|
||||
this.tokenActiveTimeout,
|
||||
this.loginDeviceType,
|
||||
required this.tokenName,
|
||||
required this.tokenValue,
|
||||
required this.isLogin,
|
||||
required this.loginId,
|
||||
required this.loginType,
|
||||
required this.tokenTimeout,
|
||||
required this.sessionTimeout,
|
||||
required this.tokenSessionTimeout,
|
||||
required this.tokenActiveTimeout,
|
||||
required this.loginDeviceType,
|
||||
this.tag,
|
||||
});
|
||||
|
||||
@@ -36,6 +36,7 @@ class SaTokenInfo {
|
||||
|
||||
@JsonSerializable()
|
||||
class User {
|
||||
int? id;
|
||||
String? username;
|
||||
int? gender;
|
||||
String? phoneNumber;
|
||||
@@ -47,7 +48,6 @@ class User {
|
||||
String? job;
|
||||
List<String>? tags;
|
||||
String? description;
|
||||
String? id;
|
||||
|
||||
User({
|
||||
this.id,
|
||||
@@ -70,10 +70,10 @@ class User {
|
||||
|
||||
@JsonSerializable()
|
||||
class Session {
|
||||
SaTokenInfo? saToken;
|
||||
User? userInfo;
|
||||
SaTokenInfo saToken;
|
||||
User userInfo;
|
||||
|
||||
Session({this.saToken, this.userInfo});
|
||||
Session({required this.saToken, required this.userInfo});
|
||||
|
||||
factory Session.fromJson(Map<String, dynamic> json) => _$SessionFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$SessionToJson(this);
|
||||
|
||||
Reference in New Issue
Block a user