You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
788 B
33 lines
788 B
import 'package:core/abstracts/copy.with.dart';
|
|
import 'package:core/models/auth.dart';
|
|
import 'package:core/proxy/volo/abp/asp-net-core/index.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'session.g.dart';
|
|
|
|
/// 企业平台认证请求承载体
|
|
@JsonSerializable()
|
|
class Session extends CloneObject<Session> {
|
|
Session({
|
|
this.language,
|
|
this.profile,
|
|
this.tenant,
|
|
this.token,
|
|
});
|
|
String? language;
|
|
UserProfile? profile;
|
|
CurrentTenantDto? tenant;
|
|
Token? token;
|
|
|
|
factory Session.fromJson(Map<String, dynamic> json) => _$SessionFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$SessionToJson(this);
|
|
|
|
@override
|
|
Session clone() => Session(
|
|
language: language,
|
|
profile: profile,
|
|
tenant: tenant,
|
|
token: token,
|
|
);
|
|
}
|