Commit 64c7c9a36d2e2e94080ae1c2a06278f6129c10d8

Authored by wdn127929
1 parent 83efd494

新建店铺

import 'package:json_annotation/json_annotation.dart';
part 'check_seller_acc_model.g.dart';
@JsonSerializable()
class CheckSellerAccModel extends Object {
@JsonKey(name: 'ret')
int ret;
@JsonKey(name: 'data')
List<CheckSellerAccSunModel> data;
@JsonKey(name: 'msg')
String msg;
CheckSellerAccModel(
this.ret,
this.data,
this.msg,
);
factory CheckSellerAccModel.fromJson(Map<String, dynamic> srcJson) =>
_$CheckSellerAccModelFromJson(srcJson);
Map<String, dynamic> toJson() => _$CheckSellerAccModelToJson(this);
}
@JsonSerializable()
class CheckSellerAccSunModel extends Object {
@JsonKey(name: 'id')
String id;
@JsonKey(name: 'uid')
String uid;
@JsonKey(name: 'seat_openid')
String seatOpenid;
@JsonKey(name: 'nick_name')
String nickName;
@JsonKey(name: 'auth_user_id')
String authUserId;
@JsonKey(name: 'seller_code')
String sellerCode;
@JsonKey(name: 'account')
String account;
@JsonKey(name: 'user_token')
String userToken;
@JsonKey(name: 'registrationId')
String registrationId;
@JsonKey(name: 'connection_id')
String connectionId;
@JsonKey(name: 'alias')
String alias;
@JsonKey(name: 'password')
String password;
@JsonKey(name: 'sellerid')
String sellerid;
@JsonKey(name: 'phone')
String phone;
@JsonKey(name: 'role_id')
String roleId;
@JsonKey(name: 'role_name')
String roleName;
@JsonKey(name: 'pid')
String pid;
@JsonKey(name: 'openid')
String openid;
@JsonKey(name: 'sellername')
String sellername;
@JsonKey(name: 'selleralias')
String selleralias;
@JsonKey(name: 'slogan')
String slogan;
@JsonKey(name: 'sellerdesc')
String sellerdesc;
@JsonKey(name: 'seller_logo')
String sellerLogo;
@JsonKey(name: 'seller_image')
String sellerImage;
@JsonKey(name: 'seller_tel')
String sellerTel;
@JsonKey(name: 'map_address')
String mapAddress;
@JsonKey(name: 'long')
String long;
@JsonKey(name: 'lat')
String lat;
@JsonKey(name: 'discount_type')
String discountType;
@JsonKey(name: 'last_num')
String lastNum;
@JsonKey(name: 'ispass')
String ispass;
@JsonKey(name: 'dis_ispass')
String disIspass;
@JsonKey(name: 'account_money')
String accountMoney;
@JsonKey(name: 'isopen_dc')
String isopenDc;
@JsonKey(name: 'isopen_md')
String isopenMd;
@JsonKey(name: 'dc_adduser_code')
String dcAdduserCode;
@JsonKey(name: 'average')
String average;
@JsonKey(name: 'is_online_reserve')
String isOnlineReserve;
@JsonKey(name: 'is_tele')
String isTele;
@JsonKey(name: 'daily')
String daily;
@JsonKey(name: 'daily_time')
String dailyTime;
@JsonKey(name: 'scale')
String scale;
@JsonKey(name: 'score')
String score;
@JsonKey(name: 'is_belt_wine')
String isBeltWine;
@JsonKey(name: 'is_auth')
String isAuth;
@JsonKey(name: 'is_call_tel')
String isCallTel;
@JsonKey(name: 'rec_stime')
String recStime;
@JsonKey(name: 'rec_etime')
String recEtime;
@JsonKey(name: 'status')
String status;
@JsonKey(name: 'is_recom')
String isRecom;
@JsonKey(name: 'cdate')
String cdate;
@JsonKey(name: 'applyment_sub_mchid')
String applymentSubMchid;
@JsonKey(name: 'pro_code')
String proCode;
@JsonKey(name: 'city_code')
String cityCode;
@JsonKey(name: 'dis_code')
String disCode;
CheckSellerAccSunModel(
this.id,
this.uid,
this.seatOpenid,
this.nickName,
this.authUserId,
this.sellerCode,
this.account,
this.userToken,
this.registrationId,
this.connectionId,
this.alias,
this.password,
this.sellerid,
this.phone,
this.roleId,
this.roleName,
this.pid,
this.openid,
this.sellername,
this.selleralias,
this.slogan,
this.sellerdesc,
this.sellerLogo,
this.sellerImage,
this.sellerTel,
this.mapAddress,
this.long,
this.lat,
this.discountType,
this.lastNum,
this.ispass,
this.disIspass,
this.accountMoney,
this.isopenDc,
this.isopenMd,
this.dcAdduserCode,
this.average,
this.isOnlineReserve,
this.isTele,
this.daily,
this.dailyTime,
this.scale,
this.score,
this.isBeltWine,
this.isAuth,
this.isCallTel,
this.recStime,
this.recEtime,
this.status,
this.isRecom,
this.cdate,
this.applymentSubMchid,
this.proCode,
this.cityCode,
this.disCode,
);
factory CheckSellerAccSunModel.fromJson(Map<String, dynamic> srcJson) =>
_$CheckSellerAccSunModelFromJson(srcJson);
Map<String, dynamic> toJson() => _$CheckSellerAccSunModelToJson(this);
}
... ...
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'check_seller_acc_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
CheckSellerAccModel _$CheckSellerAccModelFromJson(Map<String, dynamic> json) {
return CheckSellerAccModel(
json['ret'] as int,
(json['data'] as List)
?.map((e) => e == null
? null
: CheckSellerAccSunModel.fromJson(e as Map<String, dynamic>))
?.toList(),
json['msg'] as String);
}
Map<String, dynamic> _$CheckSellerAccModelToJson(
CheckSellerAccModel instance) =>
<String, dynamic>{
'ret': instance.ret,
'data': instance.data,
'msg': instance.msg
};
CheckSellerAccSunModel _$CheckSellerAccSunModelFromJson(
Map<String, dynamic> json) {
return CheckSellerAccSunModel(
json['id'] as String,
json['uid'] as String,
json['seat_openid'] as String,
json['nick_name'] as String,
json['auth_user_id'] as String,
json['seller_code'] as String,
json['account'] as String,
json['user_token'] as String,
json['registrationId'] as String,
json['connection_id'] as String,
json['alias'] as String,
json['password'] as String,
json['sellerid'] as String,
json['phone'] as String,
json['role_id'] as String,
json['role_name'] as String,
json['pid'] as String,
json['openid'] as String,
json['sellername'] as String,
json['selleralias'] as String,
json['slogan'] as String,
json['sellerdesc'] as String,
json['seller_logo'] as String,
json['seller_image'] as String,
json['seller_tel'] as String,
json['map_address'] as String,
json['long'] as String,
json['lat'] as String,
json['discount_type'] as String,
json['last_num'] as String,
json['ispass'] as String,
json['dis_ispass'] as String,
json['account_money'] as String,
json['isopen_dc'] as String,
json['isopen_md'] as String,
json['dc_adduser_code'] as String,
json['average'] as String,
json['is_online_reserve'] as String,
json['is_tele'] as String,
json['daily'] as String,
json['daily_time'] as String,
json['scale'] as String,
json['score'] as String,
json['is_belt_wine'] as String,
json['is_auth'] as String,
json['is_call_tel'] as String,
json['rec_stime'] as String,
json['rec_etime'] as String,
json['status'] as String,
json['is_recom'] as String,
json['cdate'] as String,
json['applyment_sub_mchid'] as String,
json['pro_code'] as String,
json['city_code'] as String,
json['dis_code'] as String);
}
Map<String, dynamic> _$CheckSellerAccSunModelToJson(
CheckSellerAccSunModel instance) =>
<String, dynamic>{
'id': instance.id,
'uid': instance.uid,
'seat_openid': instance.seatOpenid,
'nick_name': instance.nickName,
'auth_user_id': instance.authUserId,
'seller_code': instance.sellerCode,
'account': instance.account,
'user_token': instance.userToken,
'registrationId': instance.registrationId,
'connection_id': instance.connectionId,
'alias': instance.alias,
'password': instance.password,
'sellerid': instance.sellerid,
'phone': instance.phone,
'role_id': instance.roleId,
'role_name': instance.roleName,
'pid': instance.pid,
'openid': instance.openid,
'sellername': instance.sellername,
'selleralias': instance.selleralias,
'slogan': instance.slogan,
'sellerdesc': instance.sellerdesc,
'seller_logo': instance.sellerLogo,
'seller_image': instance.sellerImage,
'seller_tel': instance.sellerTel,
'map_address': instance.mapAddress,
'long': instance.long,
'lat': instance.lat,
'discount_type': instance.discountType,
'last_num': instance.lastNum,
'ispass': instance.ispass,
'dis_ispass': instance.disIspass,
'account_money': instance.accountMoney,
'isopen_dc': instance.isopenDc,
'isopen_md': instance.isopenMd,
'dc_adduser_code': instance.dcAdduserCode,
'average': instance.average,
'is_online_reserve': instance.isOnlineReserve,
'is_tele': instance.isTele,
'daily': instance.daily,
'daily_time': instance.dailyTime,
'scale': instance.scale,
'score': instance.score,
'is_belt_wine': instance.isBeltWine,
'is_auth': instance.isAuth,
'is_call_tel': instance.isCallTel,
'rec_stime': instance.recStime,
'rec_etime': instance.recEtime,
'status': instance.status,
'is_recom': instance.isRecom,
'cdate': instance.cdate,
'applyment_sub_mchid': instance.applymentSubMchid,
'pro_code': instance.proCode,
'city_code': instance.cityCode,
'dis_code': instance.disCode
};
... ...
class StoreInfo {
String name; //店铺名称
String address; //店铺地址
String addressDetail; //详细地址
double lat; //经度
double lng; //纬度
String position; //角色
String time; //营业时间
String phone; //接单电话
String photoFront; //门头照片
List enviromentList; //店铺环境
}
... ...