Showing
14 changed files
with
839 additions
and
1908 deletions
assets/data/data/bank.json
deleted
100644 → 0
| 1 | -[ | ||
| 2 | - { | ||
| 3 | - "id": 1, | ||
| 4 | - "bankName": "民生银行", | ||
| 5 | - "firstLetter": "M" | ||
| 6 | - }, | ||
| 7 | - { | ||
| 8 | - "id": 2, | ||
| 9 | - "bankName": "工商银行", | ||
| 10 | - "firstLetter": "G" | ||
| 11 | - }, | ||
| 12 | - { | ||
| 13 | - "id": 3, | ||
| 14 | - "bankName": "农业银行", | ||
| 15 | - "firstLetter": "N" | ||
| 16 | - }, | ||
| 17 | - { | ||
| 18 | - "id": 4, | ||
| 19 | - "bankName": "中国银行", | ||
| 20 | - "firstLetter": "Z" | ||
| 21 | - }, | ||
| 22 | - { | ||
| 23 | - "id": 5, | ||
| 24 | - "bankName": "建设银行", | ||
| 25 | - "firstLetter": "J" | ||
| 26 | - }, | ||
| 27 | - { | ||
| 28 | - "id": 6, | ||
| 29 | - "bankName": "交通银行", | ||
| 30 | - "firstLetter": "J" | ||
| 31 | - }, | ||
| 32 | - { | ||
| 33 | - "id": 7, | ||
| 34 | - "bankName": "中信银行", | ||
| 35 | - "firstLetter": "Z" | ||
| 36 | - }, | ||
| 37 | - { | ||
| 38 | - "id": 8, | ||
| 39 | - "bankName": "招商银行", | ||
| 40 | - "firstLetter": "Z" | ||
| 41 | - }, | ||
| 42 | - { | ||
| 43 | - "id": 9, | ||
| 44 | - "bankName": "兴业银行", | ||
| 45 | - "firstLetter": "X" | ||
| 46 | - }, | ||
| 47 | - { | ||
| 48 | - "id": 10, | ||
| 49 | - "bankName": "浦发银行", | ||
| 50 | - "firstLetter": "P" | ||
| 51 | - }, | ||
| 52 | - { | ||
| 53 | - "id": 16, | ||
| 54 | - "bankName": "光大银行", | ||
| 55 | - "firstLetter": "G" | ||
| 56 | - }, | ||
| 57 | - { | ||
| 58 | - "id": 17, | ||
| 59 | - "bankName": "华夏银行", | ||
| 60 | - "firstLetter": "H" | ||
| 61 | - }, | ||
| 62 | - { | ||
| 63 | - "id": 18, | ||
| 64 | - "bankName": "广发银行", | ||
| 65 | - "firstLetter": "G" | ||
| 66 | - }, | ||
| 67 | - { | ||
| 68 | - "id": 19, | ||
| 69 | - "bankName": "平安银行", | ||
| 70 | - "firstLetter": "P" | ||
| 71 | - }, | ||
| 72 | - { | ||
| 73 | - "id": 20, | ||
| 74 | - "bankName": "北京银行", | ||
| 75 | - "firstLetter": "B" | ||
| 76 | - }, | ||
| 77 | - { | ||
| 78 | - "id": 43, | ||
| 79 | - "bankName": "上海银行", | ||
| 80 | - "firstLetter": "S" | ||
| 81 | - }, | ||
| 82 | - { | ||
| 83 | - "id": 44, | ||
| 84 | - "bankName": "南京银行", | ||
| 85 | - "firstLetter": "N" | ||
| 86 | - }, | ||
| 87 | - { | ||
| 88 | - "id": 48, | ||
| 89 | - "bankName": "杭州银行", | ||
| 90 | - "firstLetter": "H" | ||
| 91 | - }, | ||
| 92 | - { | ||
| 93 | - "id": 49, | ||
| 94 | - "bankName": "宁波银行", | ||
| 95 | - "firstLetter": "N" | ||
| 96 | - }, | ||
| 97 | - { | ||
| 98 | - "id": 54, | ||
| 99 | - "bankName": "浙江稠州商业银行", | ||
| 100 | - "firstLetter": "Z" | ||
| 101 | - }, | ||
| 102 | - { | ||
| 103 | - "id": 83, | ||
| 104 | - "bankName": "汉口银行", | ||
| 105 | - "firstLetter": "H" | ||
| 106 | - }, | ||
| 107 | - { | ||
| 108 | - "id": 84, | ||
| 109 | - "bankName": "长沙银行", | ||
| 110 | - "firstLetter": "C" | ||
| 111 | - }, | ||
| 112 | - { | ||
| 113 | - "id": 116, | ||
| 114 | - "bankName": "浙商银行", | ||
| 115 | - "firstLetter": "Z" | ||
| 116 | - }, | ||
| 117 | - { | ||
| 118 | - "id": 118, | ||
| 119 | - "bankName": "渤海银行", | ||
| 120 | - "firstLetter": "B" | ||
| 121 | - }, | ||
| 122 | - { | ||
| 123 | - "id": 127, | ||
| 124 | - "bankName": "上海农商银行", | ||
| 125 | - "firstLetter": "S" | ||
| 126 | - }, | ||
| 127 | - { | ||
| 128 | - "id": 128, | ||
| 129 | - "bankName": "北京农商行", | ||
| 130 | - "firstLetter": "B" | ||
| 131 | - }, | ||
| 132 | - { | ||
| 133 | - "id": 143, | ||
| 134 | - "bankName": "中国邮储银行", | ||
| 135 | - "firstLetter": "Y" | ||
| 136 | - } | ||
| 137 | -] | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
assets/data/data/bank_2.json
deleted
100644 → 0
| 1 | -[ | ||
| 2 | - { | ||
| 3 | - "id": 13035, | ||
| 4 | - "bankName": "西安市城南支行", | ||
| 5 | - "firstLetter": "X" | ||
| 6 | - }, | ||
| 7 | - { | ||
| 8 | - "id": 13036, | ||
| 9 | - "bankName": "西安经济技术开发区支行", | ||
| 10 | - "firstLetter": "X" | ||
| 11 | - }, | ||
| 12 | - { | ||
| 13 | - "id": 13037, | ||
| 14 | - "bankName": "西安市东新街支行", | ||
| 15 | - "firstLetter": "X" | ||
| 16 | - }, | ||
| 17 | - { | ||
| 18 | - "id": 13038, | ||
| 19 | - "bankName": "西安南大街支行", | ||
| 20 | - "firstLetter": "X" | ||
| 21 | - }, | ||
| 22 | - { | ||
| 23 | - "id": 13039, | ||
| 24 | - "bankName": "西安市解放路支行", | ||
| 25 | - "firstLetter": "X" | ||
| 26 | - }, | ||
| 27 | - { | ||
| 28 | - "id": 13040, | ||
| 29 | - "bankName": "西安市太华路支行", | ||
| 30 | - "firstLetter": "X" | ||
| 31 | - }, | ||
| 32 | - { | ||
| 33 | - "id": 13041, | ||
| 34 | - "bankName": "西安民乐园支行", | ||
| 35 | - "firstLetter": "X" | ||
| 36 | - }, | ||
| 37 | - { | ||
| 38 | - "id": 13042, | ||
| 39 | - "bankName": "西安市东大街支行", | ||
| 40 | - "firstLetter": "X" | ||
| 41 | - }, | ||
| 42 | - { | ||
| 43 | - "id": 13043, | ||
| 44 | - "bankName": "西安南院门支行", | ||
| 45 | - "firstLetter": "X" | ||
| 46 | - }, | ||
| 47 | - { | ||
| 48 | - "id": 13044, | ||
| 49 | - "bankName": "西安东关支行", | ||
| 50 | - "firstLetter": "X" | ||
| 51 | - }, | ||
| 52 | - { | ||
| 53 | - "id": 13045, | ||
| 54 | - "bankName": "西安和平路支行", | ||
| 55 | - "firstLetter": "X" | ||
| 56 | - }, | ||
| 57 | - { | ||
| 58 | - "id": 13046, | ||
| 59 | - "bankName": "西安互助路支行", | ||
| 60 | - "firstLetter": "X" | ||
| 61 | - }, | ||
| 62 | - { | ||
| 63 | - "id": 13047, | ||
| 64 | - "bankName": "西安市北大街支行", | ||
| 65 | - "firstLetter": "X" | ||
| 66 | - }, | ||
| 67 | - { | ||
| 68 | - "id": 13048, | ||
| 69 | - "bankName": "西安西大街支行", | ||
| 70 | - "firstLetter": "X" | ||
| 71 | - }, | ||
| 72 | - { | ||
| 73 | - "id": 13049, | ||
| 74 | - "bankName": "西安星火路支行", | ||
| 75 | - "firstLetter": "X" | ||
| 76 | - }, | ||
| 77 | - { | ||
| 78 | - "id": 13050, | ||
| 79 | - "bankName": "西安市南关支行", | ||
| 80 | - "firstLetter": "X" | ||
| 81 | - }, | ||
| 82 | - { | ||
| 83 | - "id": 13051, | ||
| 84 | - "bankName": "西安小寨支行", | ||
| 85 | - "firstLetter": "X" | ||
| 86 | - }, | ||
| 87 | - { | ||
| 88 | - "id": 13052, | ||
| 89 | - "bankName": "西安雁塔路支行", | ||
| 90 | - "firstLetter": "X" | ||
| 91 | - }, | ||
| 92 | - { | ||
| 93 | - "id": 13053, | ||
| 94 | - "bankName": "西安含光路支行", | ||
| 95 | - "firstLetter": "X" | ||
| 96 | - }, | ||
| 97 | - { | ||
| 98 | - "id": 13054, | ||
| 99 | - "bankName": "西安铁路局支行", | ||
| 100 | - "firstLetter": "X" | ||
| 101 | - }, | ||
| 102 | - { | ||
| 103 | - "id": 13055, | ||
| 104 | - "bankName": "西安电子工业区支行", | ||
| 105 | - "firstLetter": "X" | ||
| 106 | - }, | ||
| 107 | - { | ||
| 108 | - "id": 13056, | ||
| 109 | - "bankName": "西安大雁塔支行", | ||
| 110 | - "firstLetter": "X" | ||
| 111 | - }, | ||
| 112 | - { | ||
| 113 | - "id": 13057, | ||
| 114 | - "bankName": "西安市土门支行", | ||
| 115 | - "firstLetter": "X" | ||
| 116 | - }, | ||
| 117 | - { | ||
| 118 | - "id": 13058, | ||
| 119 | - "bankName": "西安市纺织城支行", | ||
| 120 | - "firstLetter": "X" | ||
| 121 | - }, | ||
| 122 | - { | ||
| 123 | - "id": 13059, | ||
| 124 | - "bankName": "西安市韩森寨支行", | ||
| 125 | - "firstLetter": "X" | ||
| 126 | - }, | ||
| 127 | - { | ||
| 128 | - "id": 13060, | ||
| 129 | - "bankName": "西安咸宁路支行", | ||
| 130 | - "firstLetter": "X" | ||
| 131 | - }, | ||
| 132 | - { | ||
| 133 | - "id": 13061, | ||
| 134 | - "bankName": "西安市韩森寨支行万寿路分理处", | ||
| 135 | - "firstLetter": "X" | ||
| 136 | - }, | ||
| 137 | - { | ||
| 138 | - "id": 13062, | ||
| 139 | - "bankName": "西安市阎良区支行", | ||
| 140 | - "firstLetter": "X" | ||
| 141 | - }, | ||
| 142 | - { | ||
| 143 | - "id": 13063, | ||
| 144 | - "bankName": "西安市周至县支行", | ||
| 145 | - "firstLetter": "X" | ||
| 146 | - }, | ||
| 147 | - { | ||
| 148 | - "id": 13064, | ||
| 149 | - "bankName": "西安市户县支行", | ||
| 150 | - "firstLetter": "X" | ||
| 151 | - }, | ||
| 152 | - { | ||
| 153 | - "id": 13065, | ||
| 154 | - "bankName": "西安市临潼区支行", | ||
| 155 | - "firstLetter": "X" | ||
| 156 | - }, | ||
| 157 | - { | ||
| 158 | - "id": 13066, | ||
| 159 | - "bankName": "西安市高新技术开发区支行", | ||
| 160 | - "firstLetter": "X" | ||
| 161 | - }, | ||
| 162 | - { | ||
| 163 | - "id": 13067, | ||
| 164 | - "bankName": "西安劳动南路支行", | ||
| 165 | - "firstLetter": "X" | ||
| 166 | - }, | ||
| 167 | - { | ||
| 168 | - "id": 13068, | ||
| 169 | - "bankName": "西安市未央支行", | ||
| 170 | - "firstLetter": "X" | ||
| 171 | - }, | ||
| 172 | - { | ||
| 173 | - "id": 13069, | ||
| 174 | - "bankName": "西安徐家湾支行", | ||
| 175 | - "firstLetter": "X" | ||
| 176 | - }, | ||
| 177 | - { | ||
| 178 | - "id": 17731, | ||
| 179 | - "bankName": "西安莲湖路支行", | ||
| 180 | - "firstLetter": "X" | ||
| 181 | - }, | ||
| 182 | - { | ||
| 183 | - "id": 17747, | ||
| 184 | - "bankName": "陕西省西安凤城八路分理处", | ||
| 185 | - "firstLetter": "S" | ||
| 186 | - }, | ||
| 187 | - { | ||
| 188 | - "id": 17748, | ||
| 189 | - "bankName": "西安长乐中路支行", | ||
| 190 | - "firstLetter": "X" | ||
| 191 | - }, | ||
| 192 | - { | ||
| 193 | - "id": 17749, | ||
| 194 | - "bankNumber": "102791013020", | ||
| 195 | - "bankName": "陕西省西安咸宁中路支行", | ||
| 196 | - "firstLetter": "S" | ||
| 197 | - }, | ||
| 198 | - { | ||
| 199 | - "id": 17750, | ||
| 200 | - "bankName": "西安万寿南路分理处", | ||
| 201 | - "firstLetter": "X" | ||
| 202 | - }, | ||
| 203 | - { | ||
| 204 | - "id": 17759, | ||
| 205 | - "bankName": "陕西省西安紫薇田园都市分理处", | ||
| 206 | - "firstLetter": "S" | ||
| 207 | - } | ||
| 208 | -] | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
assets/data/data/city.json
deleted
100644 → 0
| 1 | -[ | ||
| 2 | - { | ||
| 3 | - "name": "阿拉善盟", | ||
| 4 | - "cityCode": "0483", | ||
| 5 | - "firstCharacter": "A" | ||
| 6 | - }, | ||
| 7 | - { | ||
| 8 | - "name": "鞍山市", | ||
| 9 | - "cityCode": "0412", | ||
| 10 | - "firstCharacter": "A" | ||
| 11 | - }, | ||
| 12 | - { | ||
| 13 | - "name": "安庆市", | ||
| 14 | - "cityCode": "0556", | ||
| 15 | - "firstCharacter": "A" | ||
| 16 | - }, | ||
| 17 | - { | ||
| 18 | - "name": "安阳市", | ||
| 19 | - "cityCode": "0372", | ||
| 20 | - "firstCharacter": "A" | ||
| 21 | - }, | ||
| 22 | - { | ||
| 23 | - "name": "阿坝藏族羌族自治州", | ||
| 24 | - "cityCode": "0837", | ||
| 25 | - "firstCharacter": "A" | ||
| 26 | - }, | ||
| 27 | - { | ||
| 28 | - "name": "安顺市", | ||
| 29 | - "cityCode": "0853", | ||
| 30 | - "firstCharacter": "A" | ||
| 31 | - }, | ||
| 32 | - { | ||
| 33 | - "name": "安康市", | ||
| 34 | - "cityCode": "0915", | ||
| 35 | - "firstCharacter": "A" | ||
| 36 | - }, | ||
| 37 | - { | ||
| 38 | - "name": "阿克苏地区", | ||
| 39 | - "cityCode": "0997", | ||
| 40 | - "firstCharacter": "A" | ||
| 41 | - }, | ||
| 42 | - { | ||
| 43 | - "name": "阿勒泰地区", | ||
| 44 | - "cityCode": "0906", | ||
| 45 | - "firstCharacter": "A" | ||
| 46 | - }, | ||
| 47 | - { | ||
| 48 | - "name": "北京市", | ||
| 49 | - "cityCode": "010", | ||
| 50 | - "firstCharacter": "B" | ||
| 51 | - }, | ||
| 52 | - { | ||
| 53 | - "name": "保定市", | ||
| 54 | - "cityCode": "0312", | ||
| 55 | - "firstCharacter": "B" | ||
| 56 | - }, | ||
| 57 | - { | ||
| 58 | - "name": "包头市", | ||
| 59 | - "cityCode": "0472", | ||
| 60 | - "firstCharacter": "B" | ||
| 61 | - }, | ||
| 62 | - { | ||
| 63 | - "name": "巴彦淖尔市", | ||
| 64 | - "cityCode": "0478", | ||
| 65 | - "firstCharacter": "B" | ||
| 66 | - }, | ||
| 67 | - { | ||
| 68 | - "name": "本溪市", | ||
| 69 | - "cityCode": "0414", | ||
| 70 | - "firstCharacter": "B" | ||
| 71 | - }, | ||
| 72 | - { | ||
| 73 | - "name": "白山市", | ||
| 74 | - "cityCode": "0439", | ||
| 75 | - "firstCharacter": "B" | ||
| 76 | - }, | ||
| 77 | - { | ||
| 78 | - "name": "白城市", | ||
| 79 | - "cityCode": "0436", | ||
| 80 | - "firstCharacter": "B" | ||
| 81 | - }, | ||
| 82 | - { | ||
| 83 | - "name": "蚌埠市", | ||
| 84 | - "cityCode": "0552", | ||
| 85 | - "firstCharacter": "B" | ||
| 86 | - }, | ||
| 87 | - { | ||
| 88 | - "name": "亳州市", | ||
| 89 | - "cityCode": "0558", | ||
| 90 | - "firstCharacter": "B" | ||
| 91 | - }, | ||
| 92 | - { | ||
| 93 | - "name": "滨州市", | ||
| 94 | - "cityCode": "0543", | ||
| 95 | - "firstCharacter": "B" | ||
| 96 | - }, | ||
| 97 | - { | ||
| 98 | - "name": "北海市", | ||
| 99 | - "cityCode": "0779", | ||
| 100 | - "firstCharacter": "B" | ||
| 101 | - }, | ||
| 102 | - { | ||
| 103 | - "name": "百色市", | ||
| 104 | - "cityCode": "0776", | ||
| 105 | - "firstCharacter": "B" | ||
| 106 | - }, | ||
| 107 | - { | ||
| 108 | - "name": "巴中市", | ||
| 109 | - "cityCode": "0827", | ||
| 110 | - "firstCharacter": "B" | ||
| 111 | - }, | ||
| 112 | - { | ||
| 113 | - "name": "毕节市", | ||
| 114 | - "cityCode": "0857", | ||
| 115 | - "firstCharacter": "B" | ||
| 116 | - }, | ||
| 117 | - { | ||
| 118 | - "name": "保山市", | ||
| 119 | - "cityCode": "0875", | ||
| 120 | - "firstCharacter": "B" | ||
| 121 | - }, | ||
| 122 | - { | ||
| 123 | - "name": "宝鸡市", | ||
| 124 | - "cityCode": "0917", | ||
| 125 | - "firstCharacter": "B" | ||
| 126 | - }, | ||
| 127 | - { | ||
| 128 | - "name": "白银市", | ||
| 129 | - "cityCode": "0943", | ||
| 130 | - "firstCharacter": "B" | ||
| 131 | - }, | ||
| 132 | - { | ||
| 133 | - "name": "博尔塔拉蒙古自治州", | ||
| 134 | - "cityCode": "0909", | ||
| 135 | - "firstCharacter": "B" | ||
| 136 | - }, | ||
| 137 | - { | ||
| 138 | - "name": "巴音郭楞蒙古自治州", | ||
| 139 | - "cityCode": "0996", | ||
| 140 | - "firstCharacter": "B" | ||
| 141 | - }, | ||
| 142 | - { | ||
| 143 | - "name": "承德市", | ||
| 144 | - "cityCode": "0314", | ||
| 145 | - "firstCharacter": "C" | ||
| 146 | - }, | ||
| 147 | - { | ||
| 148 | - "name": "沧州市", | ||
| 149 | - "cityCode": "0317", | ||
| 150 | - "firstCharacter": "C" | ||
| 151 | - }, | ||
| 152 | - { | ||
| 153 | - "name": "长治市", | ||
| 154 | - "cityCode": "0355", | ||
| 155 | - "firstCharacter": "C" | ||
| 156 | - }, | ||
| 157 | - { | ||
| 158 | - "name": "赤峰市", | ||
| 159 | - "cityCode": "0476", | ||
| 160 | - "firstCharacter": "C" | ||
| 161 | - }, | ||
| 162 | - { | ||
| 163 | - "name": "朝阳市", | ||
| 164 | - "cityCode": "0421", | ||
| 165 | - "firstCharacter": "C" | ||
| 166 | - }, | ||
| 167 | - { | ||
| 168 | - "name": "长春市", | ||
| 169 | - "cityCode": "0431", | ||
| 170 | - "firstCharacter": "C" | ||
| 171 | - }, | ||
| 172 | - { | ||
| 173 | - "name": "常州市", | ||
| 174 | - "cityCode": "0519", | ||
| 175 | - "firstCharacter": "C" | ||
| 176 | - }, | ||
| 177 | - { | ||
| 178 | - "name": "滁州市", | ||
| 179 | - "cityCode": "0550", | ||
| 180 | - "firstCharacter": "C" | ||
| 181 | - }, | ||
| 182 | - { | ||
| 183 | - "name": "池州市", | ||
| 184 | - "cityCode": "0566", | ||
| 185 | - "firstCharacter": "C" | ||
| 186 | - }, | ||
| 187 | - { | ||
| 188 | - "name": "长沙市", | ||
| 189 | - "cityCode": "0731", | ||
| 190 | - "firstCharacter": "C" | ||
| 191 | - }, | ||
| 192 | - { | ||
| 193 | - "name": "常德市", | ||
| 194 | - "cityCode": "0736", | ||
| 195 | - "firstCharacter": "C" | ||
| 196 | - }, | ||
| 197 | - { | ||
| 198 | - "name": "潮州市", | ||
| 199 | - "cityCode": "0768", | ||
| 200 | - "firstCharacter": "C" | ||
| 201 | - }, | ||
| 202 | - { | ||
| 203 | - "name": "崇左市", | ||
| 204 | - "cityCode": "0771", | ||
| 205 | - "firstCharacter": "C" | ||
| 206 | - }, | ||
| 207 | - { | ||
| 208 | - "name": "重庆市", | ||
| 209 | - "cityCode": "023", | ||
| 210 | - "firstCharacter": "C" | ||
| 211 | - }, | ||
| 212 | - { | ||
| 213 | - "name": "成都市", | ||
| 214 | - "cityCode": "028", | ||
| 215 | - "firstCharacter": "C" | ||
| 216 | - }, | ||
| 217 | - { | ||
| 218 | - "name": "楚雄彝族自治州", | ||
| 219 | - "cityCode": "0878", | ||
| 220 | - "firstCharacter": "C" | ||
| 221 | - }, | ||
| 222 | - { | ||
| 223 | - "name": "昌吉回族自治州", | ||
| 224 | - "cityCode": "0994", | ||
| 225 | - "firstCharacter": "C" | ||
| 226 | - }, | ||
| 227 | - { | ||
| 228 | - "name": "嘉义市", | ||
| 229 | - "cityCode": "05", | ||
| 230 | - "firstCharacter": "C" | ||
| 231 | - }, | ||
| 232 | - { | ||
| 233 | - "name": "彰化县", | ||
| 234 | - "cityCode": "04", | ||
| 235 | - "firstCharacter": "C" | ||
| 236 | - }, | ||
| 237 | - { | ||
| 238 | - "name": "嘉义县", | ||
| 239 | - "cityCode": "05", | ||
| 240 | - "firstCharacter": "C" | ||
| 241 | - }, | ||
| 242 | - { | ||
| 243 | - "name": "大同市", | ||
| 244 | - "cityCode": "0352", | ||
| 245 | - "firstCharacter": "D" | ||
| 246 | - }, | ||
| 247 | - { | ||
| 248 | - "name": "大连市", | ||
| 249 | - "cityCode": "0411", | ||
| 250 | - "firstCharacter": "D" | ||
| 251 | - }, | ||
| 252 | - { | ||
| 253 | - "name": "丹东市", | ||
| 254 | - "cityCode": "0415", | ||
| 255 | - "firstCharacter": "D" | ||
| 256 | - }, | ||
| 257 | - { | ||
| 258 | - "name": "大庆市", | ||
| 259 | - "cityCode": "0459", | ||
| 260 | - "firstCharacter": "D" | ||
| 261 | - }, | ||
| 262 | - { | ||
| 263 | - "name": "德州市", | ||
| 264 | - "cityCode": "0534", | ||
| 265 | - "firstCharacter": "D" | ||
| 266 | - }, | ||
| 267 | - { | ||
| 268 | - "name": "东莞市", | ||
| 269 | - "cityCode": "0769", | ||
| 270 | - "firstCharacter": "D" | ||
| 271 | - }, | ||
| 272 | - { | ||
| 273 | - "name": "德阳市", | ||
| 274 | - "cityCode": "0838", | ||
| 275 | - "firstCharacter": "D" | ||
| 276 | - }, | ||
| 277 | - { | ||
| 278 | - "name": "达州市", | ||
| 279 | - "cityCode": "0818", | ||
| 280 | - "firstCharacter": "D" | ||
| 281 | - }, | ||
| 282 | - { | ||
| 283 | - "name": "大理白族自治州", | ||
| 284 | - "cityCode": "0872", | ||
| 285 | - "firstCharacter": "D" | ||
| 286 | - }, | ||
| 287 | - { | ||
| 288 | - "name": "德宏傣族景颇族自治州", | ||
| 289 | - "cityCode": "0692", | ||
| 290 | - "firstCharacter": "D" | ||
| 291 | - }, | ||
| 292 | - { | ||
| 293 | - "name": "迪庆藏族自治州", | ||
| 294 | - "cityCode": "0887", | ||
| 295 | - "firstCharacter": "D" | ||
| 296 | - }, | ||
| 297 | - { | ||
| 298 | - "name": "定西市", | ||
| 299 | - "cityCode": "0932", | ||
| 300 | - "firstCharacter": "D" | ||
| 301 | - }, | ||
| 302 | - { | ||
| 303 | - "name": "鄂州市", | ||
| 304 | - "cityCode": "0711", | ||
| 305 | - "firstCharacter": "E" | ||
| 306 | - }, | ||
| 307 | - { | ||
| 308 | - "name": "恩施土家族苗族自治州", | ||
| 309 | - "cityCode": "0718", | ||
| 310 | - "firstCharacter": "E" | ||
| 311 | - }, | ||
| 312 | - { | ||
| 313 | - "name": "抚顺市", | ||
| 314 | - "cityCode": "024", | ||
| 315 | - "firstCharacter": "F" | ||
| 316 | - }, | ||
| 317 | - { | ||
| 318 | - "name": "阜阳市", | ||
| 319 | - "cityCode": "0558", | ||
| 320 | - "firstCharacter": "F" | ||
| 321 | - }, | ||
| 322 | - { | ||
| 323 | - "name": "福州市", | ||
| 324 | - "cityCode": "0591", | ||
| 325 | - "firstCharacter": "F" | ||
| 326 | - }, | ||
| 327 | - { | ||
| 328 | - "name": "抚州市", | ||
| 329 | - "cityCode": "0794", | ||
| 330 | - "firstCharacter": "F" | ||
| 331 | - }, | ||
| 332 | - { | ||
| 333 | - "name": "佛山市", | ||
| 334 | - "cityCode": "0757", | ||
| 335 | - "firstCharacter": "F" | ||
| 336 | - }, | ||
| 337 | - { | ||
| 338 | - "name": "防城港市", | ||
| 339 | - "cityCode": "0770", | ||
| 340 | - "firstCharacter": "F" | ||
| 341 | - }, | ||
| 342 | - { | ||
| 343 | - "name": "赣州市", | ||
| 344 | - "cityCode": "0797", | ||
| 345 | - "firstCharacter": "G" | ||
| 346 | - }, | ||
| 347 | - { | ||
| 348 | - "name": "广州市", | ||
| 349 | - "cityCode": "020", | ||
| 350 | - "firstCharacter": "G" | ||
| 351 | - }, | ||
| 352 | - { | ||
| 353 | - "name": "桂林市", | ||
| 354 | - "cityCode": "0773", | ||
| 355 | - "firstCharacter": "G" | ||
| 356 | - }, | ||
| 357 | - { | ||
| 358 | - "name": "贵港市", | ||
| 359 | - "cityCode": "0775", | ||
| 360 | - "firstCharacter": "G" | ||
| 361 | - }, | ||
| 362 | - { | ||
| 363 | - "name": "广元市", | ||
| 364 | - "cityCode": "0839", | ||
| 365 | - "firstCharacter": "G" | ||
| 366 | - }, | ||
| 367 | - { | ||
| 368 | - "name": "广安市", | ||
| 369 | - "cityCode": "0826", | ||
| 370 | - "firstCharacter": "G" | ||
| 371 | - }, | ||
| 372 | - { | ||
| 373 | - "name": "贵阳市", | ||
| 374 | - "cityCode": "0851", | ||
| 375 | - "firstCharacter": "G" | ||
| 376 | - }, | ||
| 377 | - { | ||
| 378 | - "name": "甘南藏族自治州", | ||
| 379 | - "cityCode": "0941", | ||
| 380 | - "firstCharacter": "G" | ||
| 381 | - }, | ||
| 382 | - { | ||
| 383 | - "name": "邯郸市", | ||
| 384 | - "cityCode": "0310", | ||
| 385 | - "firstCharacter": "H" | ||
| 386 | - }, | ||
| 387 | - { | ||
| 388 | - "name": "衡水市", | ||
| 389 | - "cityCode": "0318", | ||
| 390 | - "firstCharacter": "H" | ||
| 391 | - }, | ||
| 392 | - { | ||
| 393 | - "name": "呼和浩特市", | ||
| 394 | - "cityCode": "0471", | ||
| 395 | - "firstCharacter": "H" | ||
| 396 | - }, | ||
| 397 | - { | ||
| 398 | - "name": "呼伦贝尔市", | ||
| 399 | - "cityCode": "0470", | ||
| 400 | - "firstCharacter": "H" | ||
| 401 | - }, | ||
| 402 | - { | ||
| 403 | - "name": "兴安盟", | ||
| 404 | - "cityCode": "0482", | ||
| 405 | - "firstCharacter": "H" | ||
| 406 | - }, | ||
| 407 | - { | ||
| 408 | - "name": "葫芦岛市", | ||
| 409 | - "cityCode": "0429", | ||
| 410 | - "firstCharacter": "H" | ||
| 411 | - }, | ||
| 412 | - { | ||
| 413 | - "name": "哈尔滨市", | ||
| 414 | - "cityCode": "0451", | ||
| 415 | - "firstCharacter": "H" | ||
| 416 | - }, | ||
| 417 | - { | ||
| 418 | - "name": "鹤岗市", | ||
| 419 | - "cityCode": "0468", | ||
| 420 | - "firstCharacter": "H" | ||
| 421 | - }, | ||
| 422 | - { | ||
| 423 | - "name": "黑河市", | ||
| 424 | - "cityCode": "0456", | ||
| 425 | - "firstCharacter": "H" | ||
| 426 | - }, | ||
| 427 | - { | ||
| 428 | - "name": "淮安市", | ||
| 429 | - "cityCode": "0517", | ||
| 430 | - "firstCharacter": "H" | ||
| 431 | - }, | ||
| 432 | - { | ||
| 433 | - "name": "杭州市", | ||
| 434 | - "cityCode": "0571", | ||
| 435 | - "firstCharacter": "H" | ||
| 436 | - }, | ||
| 437 | - { | ||
| 438 | - "name": "湖州市", | ||
| 439 | - "cityCode": "0572", | ||
| 440 | - "firstCharacter": "H" | ||
| 441 | - }, | ||
| 442 | - { | ||
| 443 | - "name": "合肥市", | ||
| 444 | - "cityCode": "0551", | ||
| 445 | - "firstCharacter": "H" | ||
| 446 | - }, | ||
| 447 | - { | ||
| 448 | - "name": "淮南市", | ||
| 449 | - "cityCode": "0554", | ||
| 450 | - "firstCharacter": "H" | ||
| 451 | - }, | ||
| 452 | - { | ||
| 453 | - "name": "淮北市", | ||
| 454 | - "cityCode": "0561", | ||
| 455 | - "firstCharacter": "H" | ||
| 456 | - }, | ||
| 457 | - { | ||
| 458 | - "name": "黄山市", | ||
| 459 | - "cityCode": "0559", | ||
| 460 | - "firstCharacter": "H" | ||
| 461 | - }, | ||
| 462 | - { | ||
| 463 | - "name": "菏泽市", | ||
| 464 | - "cityCode": "0530", | ||
| 465 | - "firstCharacter": "H" | ||
| 466 | - }, | ||
| 467 | - { | ||
| 468 | - "name": "鹤壁市", | ||
| 469 | - "cityCode": "0392", | ||
| 470 | - "firstCharacter": "H" | ||
| 471 | - }, | ||
| 472 | - { | ||
| 473 | - "name": "黄石市", | ||
| 474 | - "cityCode": "0714", | ||
| 475 | - "firstCharacter": "H" | ||
| 476 | - }, | ||
| 477 | - { | ||
| 478 | - "name": "黄冈市", | ||
| 479 | - "cityCode": "0713", | ||
| 480 | - "firstCharacter": "H" | ||
| 481 | - }, | ||
| 482 | - { | ||
| 483 | - "name": "衡阳市", | ||
| 484 | - "cityCode": "0734", | ||
| 485 | - "firstCharacter": "H" | ||
| 486 | - }, | ||
| 487 | - { | ||
| 488 | - "name": "怀化市", | ||
| 489 | - "cityCode": "0745", | ||
| 490 | - "firstCharacter": "H" | ||
| 491 | - }, | ||
| 492 | - { | ||
| 493 | - "name": "海口市", | ||
| 494 | - "cityCode": "0898", | ||
| 495 | - "firstCharacter": "H" | ||
| 496 | - }, | ||
| 497 | - { | ||
| 498 | - "name": "汉中市", | ||
| 499 | - "cityCode": "0916", | ||
| 500 | - "firstCharacter": "H" | ||
| 501 | - }, | ||
| 502 | - { | ||
| 503 | - "name": "伊犁哈萨克自治州", | ||
| 504 | - "cityCode": "0999", | ||
| 505 | - "firstCharacter": "I" | ||
| 506 | - }, | ||
| 507 | - { | ||
| 508 | - "name": "晋城市", | ||
| 509 | - "cityCode": "0356", | ||
| 510 | - "firstCharacter": "J" | ||
| 511 | - }, | ||
| 512 | - { | ||
| 513 | - "name": "晋中市", | ||
| 514 | - "cityCode": "0354", | ||
| 515 | - "firstCharacter": "J" | ||
| 516 | - }, | ||
| 517 | - { | ||
| 518 | - "name": "吉林市", | ||
| 519 | - "cityCode": "0432", | ||
| 520 | - "firstCharacter": "J" | ||
| 521 | - }, | ||
| 522 | - { | ||
| 523 | - "name": "金华市", | ||
| 524 | - "cityCode": "0579", | ||
| 525 | - "firstCharacter": "J" | ||
| 526 | - }, | ||
| 527 | - { | ||
| 528 | - "name": "济南市", | ||
| 529 | - "cityCode": "0531", | ||
| 530 | - "firstCharacter": "J" | ||
| 531 | - }, | ||
| 532 | - { | ||
| 533 | - "name": "焦作市", | ||
| 534 | - "cityCode": "0391", | ||
| 535 | - "firstCharacter": "J" | ||
| 536 | - }, | ||
| 537 | - { | ||
| 538 | - "name": "开封市", | ||
| 539 | - "cityCode": "0378", | ||
| 540 | - "firstCharacter": "K" | ||
| 541 | - }, | ||
| 542 | - { | ||
| 543 | - "name": "昆明市", | ||
| 544 | - "cityCode": "0871", | ||
| 545 | - "firstCharacter": "K" | ||
| 546 | - }, | ||
| 547 | - { | ||
| 548 | - "name": "克孜勒苏柯尔克孜自治州", | ||
| 549 | - "cityCode": "0908", | ||
| 550 | - "firstCharacter": "K" | ||
| 551 | - }, | ||
| 552 | - { | ||
| 553 | - "name": "九龙", | ||
| 554 | - "cityCode": "00852", | ||
| 555 | - "firstCharacter": "K" | ||
| 556 | - }, | ||
| 557 | - { | ||
| 558 | - "name": "临汾市", | ||
| 559 | - "cityCode": "0357", | ||
| 560 | - "firstCharacter": "L" | ||
| 561 | - }, | ||
| 562 | - { | ||
| 563 | - "name": "丽水市", | ||
| 564 | - "cityCode": "0578", | ||
| 565 | - "firstCharacter": "L" | ||
| 566 | - }, | ||
| 567 | - { | ||
| 568 | - "name": "临沂市", | ||
| 569 | - "cityCode": "0539", | ||
| 570 | - "firstCharacter": "L" | ||
| 571 | - }, | ||
| 572 | - { | ||
| 573 | - "name": "洛阳市", | ||
| 574 | - "cityCode": "0379", | ||
| 575 | - "firstCharacter": "L" | ||
| 576 | - }, | ||
| 577 | - { | ||
| 578 | - "name": "拉萨市", | ||
| 579 | - "cityCode": "0891", | ||
| 580 | - "firstCharacter": "L" | ||
| 581 | - }, | ||
| 582 | - { | ||
| 583 | - "name": "牡丹江市", | ||
| 584 | - "cityCode": "0453", | ||
| 585 | - "firstCharacter": "M" | ||
| 586 | - }, | ||
| 587 | - { | ||
| 588 | - "name": "马鞍山市", | ||
| 589 | - "cityCode": "0555", | ||
| 590 | - "firstCharacter": "M" | ||
| 591 | - }, | ||
| 592 | - { | ||
| 593 | - "name": "茂名市", | ||
| 594 | - "cityCode": "0668", | ||
| 595 | - "firstCharacter": "M" | ||
| 596 | - }, | ||
| 597 | - { | ||
| 598 | - "name": "南京市", | ||
| 599 | - "cityCode": "025", | ||
| 600 | - "firstCharacter": "N" | ||
| 601 | - }, | ||
| 602 | - { | ||
| 603 | - "name": "南通市", | ||
| 604 | - "cityCode": "0513", | ||
| 605 | - "firstCharacter": "N" | ||
| 606 | - }, | ||
| 607 | - { | ||
| 608 | - "name": "宁波市", | ||
| 609 | - "cityCode": "0574", | ||
| 610 | - "firstCharacter": "N" | ||
| 611 | - }, | ||
| 612 | - { | ||
| 613 | - "name": "莆田市", | ||
| 614 | - "cityCode": "0594", | ||
| 615 | - "firstCharacter": "P" | ||
| 616 | - }, | ||
| 617 | - { | ||
| 618 | - "name": "平顶山市", | ||
| 619 | - "cityCode": "0375", | ||
| 620 | - "firstCharacter": "P" | ||
| 621 | - }, | ||
| 622 | - { | ||
| 623 | - "name": "衢州市", | ||
| 624 | - "cityCode": "0570", | ||
| 625 | - "firstCharacter": "Q" | ||
| 626 | - }, | ||
| 627 | - { | ||
| 628 | - "name": "泉州市", | ||
| 629 | - "cityCode": "0595", | ||
| 630 | - "firstCharacter": "Q" | ||
| 631 | - }, | ||
| 632 | - { | ||
| 633 | - "name": "青岛市", | ||
| 634 | - "cityCode": "0532", | ||
| 635 | - "firstCharacter": "Q" | ||
| 636 | - }, | ||
| 637 | - { | ||
| 638 | - "name": "庆阳市", | ||
| 639 | - "cityCode": "0934", | ||
| 640 | - "firstCharacter": "Q" | ||
| 641 | - }, | ||
| 642 | - { | ||
| 643 | - "name": "日照市", | ||
| 644 | - "cityCode": "0633", | ||
| 645 | - "firstCharacter": "R" | ||
| 646 | - }, | ||
| 647 | - { | ||
| 648 | - "name": "石家庄市", | ||
| 649 | - "cityCode": "0311", | ||
| 650 | - "firstCharacter": "S" | ||
| 651 | - }, | ||
| 652 | - { | ||
| 653 | - "name": "朔州市", | ||
| 654 | - "cityCode": "0349", | ||
| 655 | - "firstCharacter": "S" | ||
| 656 | - }, | ||
| 657 | - { | ||
| 658 | - "name": "沈阳市", | ||
| 659 | - "cityCode": "024", | ||
| 660 | - "firstCharacter": "S" | ||
| 661 | - }, | ||
| 662 | - { | ||
| 663 | - "name": "苏州市", | ||
| 664 | - "cityCode": "0512", | ||
| 665 | - "firstCharacter": "S" | ||
| 666 | - }, | ||
| 667 | - { | ||
| 668 | - "name": "十堰市", | ||
| 669 | - "cityCode": "0719", | ||
| 670 | - "firstCharacter": "S" | ||
| 671 | - }, | ||
| 672 | - { | ||
| 673 | - "name": "三沙市", | ||
| 674 | - "cityCode": "0898", | ||
| 675 | - "firstCharacter": "S" | ||
| 676 | - }, | ||
| 677 | - { | ||
| 678 | - "name": "石嘴山市", | ||
| 679 | - "cityCode": "0952", | ||
| 680 | - "firstCharacter": "S" | ||
| 681 | - }, | ||
| 682 | - { | ||
| 683 | - "name": "天津市", | ||
| 684 | - "cityCode": "022", | ||
| 685 | - "firstCharacter": "T" | ||
| 686 | - }, | ||
| 687 | - { | ||
| 688 | - "name": "唐山市", | ||
| 689 | - "cityCode": "0315", | ||
| 690 | - "firstCharacter": "T" | ||
| 691 | - }, | ||
| 692 | - { | ||
| 693 | - "name": "太原市", | ||
| 694 | - "cityCode": "0351", | ||
| 695 | - "firstCharacter": "T" | ||
| 696 | - }, | ||
| 697 | - { | ||
| 698 | - "name": "台州市", | ||
| 699 | - "cityCode": "0576", | ||
| 700 | - "firstCharacter": "T" | ||
| 701 | - }, | ||
| 702 | - { | ||
| 703 | - "name": "吐鲁番地区", | ||
| 704 | - "cityCode": "0995", | ||
| 705 | - "firstCharacter": "T" | ||
| 706 | - }, | ||
| 707 | - { | ||
| 708 | - "name": "乌兰察布市", | ||
| 709 | - "cityCode": "0474", | ||
| 710 | - "firstCharacter": "W" | ||
| 711 | - }, | ||
| 712 | - { | ||
| 713 | - "name": "乌鲁木齐市", | ||
| 714 | - "cityCode": "0991", | ||
| 715 | - "firstCharacter": "W" | ||
| 716 | - }, | ||
| 717 | - { | ||
| 718 | - "name": "潍坊市", | ||
| 719 | - "cityCode": "0536", | ||
| 720 | - "firstCharacter": "W" | ||
| 721 | - }, | ||
| 722 | - { | ||
| 723 | - "name": "威海市", | ||
| 724 | - "cityCode": "0631", | ||
| 725 | - "firstCharacter": "W" | ||
| 726 | - }, | ||
| 727 | - { | ||
| 728 | - "name": "武汉市", | ||
| 729 | - "cityCode": "0022222", | ||
| 730 | - "firstCharacter": "W" | ||
| 731 | - }, | ||
| 732 | - { | ||
| 733 | - "name": "邢台市", | ||
| 734 | - "cityCode": "0319", | ||
| 735 | - "firstCharacter": "X" | ||
| 736 | - }, | ||
| 737 | - { | ||
| 738 | - "name": "忻州市", | ||
| 739 | - "cityCode": "0350", | ||
| 740 | - "firstCharacter": "X" | ||
| 741 | - }, | ||
| 742 | - { | ||
| 743 | - "name": "信阳市", | ||
| 744 | - "cityCode": "0376", | ||
| 745 | - "firstCharacter": "X" | ||
| 746 | - }, | ||
| 747 | - { | ||
| 748 | - "name": "阳泉市", | ||
| 749 | - "cityCode": "0353", | ||
| 750 | - "firstCharacter": "Y" | ||
| 751 | - }, | ||
| 752 | - { | ||
| 753 | - "name": "运城市", | ||
| 754 | - "cityCode": "0359", | ||
| 755 | - "firstCharacter": "Y" | ||
| 756 | - }, | ||
| 757 | - { | ||
| 758 | - "name": "营口市", | ||
| 759 | - "cityCode": "0417", | ||
| 760 | - "firstCharacter": "Y" | ||
| 761 | - }, | ||
| 762 | - { | ||
| 763 | - "name": "宜昌市", | ||
| 764 | - "cityCode": "0717", | ||
| 765 | - "firstCharacter": "Y" | ||
| 766 | - }, | ||
| 767 | - { | ||
| 768 | - "name": "岳阳市", | ||
| 769 | - "cityCode": "0730", | ||
| 770 | - "firstCharacter": "Y" | ||
| 771 | - }, | ||
| 772 | - { | ||
| 773 | - "name": "玉溪市", | ||
| 774 | - "cityCode": "0877", | ||
| 775 | - "firstCharacter": "Y" | ||
| 776 | - }, | ||
| 777 | - { | ||
| 778 | - "name": "舟山群岛新区", | ||
| 779 | - "cityCode": "0580", | ||
| 780 | - "firstCharacter": "Z" | ||
| 781 | - }, | ||
| 782 | - { | ||
| 783 | - "name": "郑州市", | ||
| 784 | - "cityCode": "0371", | ||
| 785 | - "firstCharacter": "Z" | ||
| 786 | - }, | ||
| 787 | - { | ||
| 788 | - "name": "肇庆市", | ||
| 789 | - "cityCode": "0758", | ||
| 790 | - "firstCharacter": "Z" | ||
| 791 | - }, | ||
| 792 | - { | ||
| 793 | - "name": "张掖市", | ||
| 794 | - "cityCode": "0936", | ||
| 795 | - "firstCharacter": "Z" | ||
| 796 | - } | ||
| 797 | -] | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
assets/data/data/sort_0.json
deleted
100644 → 0
| 1 | -[ | ||
| 2 | - { | ||
| 3 | - "id": "1", | ||
| 4 | - "name": "超市便利" | ||
| 5 | - }, | ||
| 6 | - { | ||
| 7 | - "id": "2", | ||
| 8 | - "name": "生鲜果蔬" | ||
| 9 | - }, | ||
| 10 | - { | ||
| 11 | - "id": "3", | ||
| 12 | - "name": "零食小吃" | ||
| 13 | - }, | ||
| 14 | - { | ||
| 15 | - "id": "4", | ||
| 16 | - "name": "美食餐饮" | ||
| 17 | - }, | ||
| 18 | - { | ||
| 19 | - "id": "5", | ||
| 20 | - "name": "鲜花烘培" | ||
| 21 | - }, | ||
| 22 | - { | ||
| 23 | - "id": "6", | ||
| 24 | - "name": "生活服务" | ||
| 25 | - }, | ||
| 26 | - { | ||
| 27 | - "id": "7", | ||
| 28 | - "name": "其他" | ||
| 29 | - }, | ||
| 30 | - { | ||
| 31 | - "id": "8", | ||
| 32 | - "name": "综合" | ||
| 33 | - }, | ||
| 34 | - { | ||
| 35 | - "id": "10", | ||
| 36 | - "name": "美容个护" | ||
| 37 | - }, | ||
| 38 | - { | ||
| 39 | - "id": "11", | ||
| 40 | - "name": "家居生活" | ||
| 41 | - }, | ||
| 42 | - { | ||
| 43 | - "id": "12", | ||
| 44 | - "name": "服饰箱包" | ||
| 45 | - }, | ||
| 46 | - { | ||
| 47 | - "id": "13", | ||
| 48 | - "name": "母婴玩具" | ||
| 49 | - }, | ||
| 50 | - { | ||
| 51 | - "id": "15", | ||
| 52 | - "name": "海淘进口" | ||
| 53 | - }, | ||
| 54 | - { | ||
| 55 | - "id": "755", | ||
| 56 | - "name": "快递代收" | ||
| 57 | - }, | ||
| 58 | - { | ||
| 59 | - "id": "756", | ||
| 60 | - "name": "食品保健" | ||
| 61 | - }, | ||
| 62 | - { | ||
| 63 | - "id": "764", | ||
| 64 | - "name": "家居生活" | ||
| 65 | - }, | ||
| 66 | - { | ||
| 67 | - "id": "769", | ||
| 68 | - "name": "米面杂粮" | ||
| 69 | - }, | ||
| 70 | - { | ||
| 71 | - "id": "786", | ||
| 72 | - "name": "水果生鲜" | ||
| 73 | - }, | ||
| 74 | - { | ||
| 75 | - "id": "807", | ||
| 76 | - "name": "社区健身" | ||
| 77 | - }, | ||
| 78 | - { | ||
| 79 | - "id": "811", | ||
| 80 | - "name": "艺术礼品" | ||
| 81 | - }, | ||
| 82 | - { | ||
| 83 | - "id": "814", | ||
| 84 | - "name": "今日特卖" | ||
| 85 | - }, | ||
| 86 | - { | ||
| 87 | - "id": "816", | ||
| 88 | - "name": "周边旅游" | ||
| 89 | - }, | ||
| 90 | - { | ||
| 91 | - "id": "820", | ||
| 92 | - "name": "家装建材" | ||
| 93 | - }, | ||
| 94 | - { | ||
| 95 | - "id": "823", | ||
| 96 | - "name": "虚拟商品" | ||
| 97 | - }, | ||
| 98 | - { | ||
| 99 | - "id": "14057", | ||
| 100 | - "name": "生活用品" | ||
| 101 | - }, | ||
| 102 | - { | ||
| 103 | - "id": "14181", | ||
| 104 | - "name": "手机数码" | ||
| 105 | - } | ||
| 106 | -] | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
assets/data/data/sort_1.json
deleted
100644 → 0
| 1 | -[ | ||
| 2 | - { | ||
| 3 | - "id": "15677", | ||
| 4 | - "name": "厨房用具" | ||
| 5 | - }, | ||
| 6 | - { | ||
| 7 | - "id": "15690", | ||
| 8 | - "name": "精美餐具" | ||
| 9 | - }, | ||
| 10 | - { | ||
| 11 | - "id": "15698", | ||
| 12 | - "name": "家纺" | ||
| 13 | - }, | ||
| 14 | - { | ||
| 15 | - "id": "15717", | ||
| 16 | - "name": "家具" | ||
| 17 | - }, | ||
| 18 | - { | ||
| 19 | - "id": "15740", | ||
| 20 | - "name": "灯具" | ||
| 21 | - }, | ||
| 22 | - { | ||
| 23 | - "id": "15755", | ||
| 24 | - "name": "生活日用" | ||
| 25 | - }, | ||
| 26 | - { | ||
| 27 | - "id": "15765", | ||
| 28 | - "name": "宠物用品" | ||
| 29 | - }, | ||
| 30 | - { | ||
| 31 | - "id": "15773", | ||
| 32 | - "name": "家装建材" | ||
| 33 | - }, | ||
| 34 | - { | ||
| 35 | - "id": "15795", | ||
| 36 | - "name": "赠品" | ||
| 37 | - }, | ||
| 38 | - { | ||
| 39 | - "id": "15797", | ||
| 40 | - "name": "家装软饰" | ||
| 41 | - }, | ||
| 42 | - { | ||
| 43 | - "id": "15814", | ||
| 44 | - "name": "收纳用品" | ||
| 45 | - }, | ||
| 46 | - { | ||
| 47 | - "id": "26541", | ||
| 48 | - "name": "演出票务" | ||
| 49 | - }, | ||
| 50 | - { | ||
| 51 | - "id": "26551", | ||
| 52 | - "name": "健康体检" | ||
| 53 | - }, | ||
| 54 | - { | ||
| 55 | - "id": "26554", | ||
| 56 | - "name": "教育培训" | ||
| 57 | - }, | ||
| 58 | - { | ||
| 59 | - "id": "26561", | ||
| 60 | - "name": "汽车保养" | ||
| 61 | - }, | ||
| 62 | - { | ||
| 63 | - "id": "26563", | ||
| 64 | - "name": "影视会员" | ||
| 65 | - }, | ||
| 66 | - { | ||
| 67 | - "id": "26565", | ||
| 68 | - "name": "摄影、摄像" | ||
| 69 | - } | ||
| 70 | -] | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
assets/data/data/sort_2.json
deleted
100644 → 0
| 1 | -[ | ||
| 2 | - { | ||
| 3 | - "id": "15691", | ||
| 4 | - "name": "酒具/杯具" | ||
| 5 | - }, | ||
| 6 | - { | ||
| 7 | - "id": "15692", | ||
| 8 | - "name": "水具" | ||
| 9 | - }, | ||
| 10 | - { | ||
| 11 | - "id": "15693", | ||
| 12 | - "name": "筷勺/刀叉" | ||
| 13 | - }, | ||
| 14 | - { | ||
| 15 | - "id": "15694", | ||
| 16 | - "name": "碗碟" | ||
| 17 | - }, | ||
| 18 | - { | ||
| 19 | - "id": "15695", | ||
| 20 | - "name": "组合套装" | ||
| 21 | - }, | ||
| 22 | - { | ||
| 23 | - "id": "15696", | ||
| 24 | - "name": "美食工具" | ||
| 25 | - }, | ||
| 26 | - { | ||
| 27 | - "id": "15697", | ||
| 28 | - "name": "茶具/咖啡具" | ||
| 29 | - } | ||
| 30 | -] | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
assets/data/lang.json
0 → 100644
| 1 | +[ | ||
| 2 | + { | ||
| 3 | + "id": "1", | ||
| 4 | + "name": "普通话" | ||
| 5 | + }, | ||
| 6 | + { | ||
| 7 | + "id": "2", | ||
| 8 | + "name": "四川话" | ||
| 9 | + }, | ||
| 10 | + { | ||
| 11 | + "id": "3", | ||
| 12 | + "name": "山东话" | ||
| 13 | + }, | ||
| 14 | + { | ||
| 15 | + "id": "4", | ||
| 16 | + "name": "闽南话" | ||
| 17 | + }, | ||
| 18 | + { | ||
| 19 | + "id": "5", | ||
| 20 | + "name": "东北话" | ||
| 21 | + } | ||
| 22 | +] | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -4,8 +4,15 @@ | ... | @@ -4,8 +4,15 @@ |
| 4 | 4 | ||
| 5 | // This file is automatically generated. DO NOT EDIT, all your changes would be lost. | 5 | // This file is automatically generated. DO NOT EDIT, all your changes would be lost. |
| 6 | import 'package:one_poem/account/models/user_entity.dart'; | 6 | import 'package:one_poem/account/models/user_entity.dart'; |
| 7 | +import 'package:one_poem/generated/json/user_entity.g.dart'; | ||
| 7 | import 'package:one_poem/category/models/category_item_entity.dart'; | 8 | import 'package:one_poem/category/models/category_item_entity.dart'; |
| 9 | +import 'package:one_poem/generated/json/category_item_entity.g.dart'; | ||
| 10 | +import 'package:one_poem/poem/models/lang_sort_entity.dart'; | ||
| 11 | +import 'package:one_poem/generated/json/lang_sort_entity.g.dart'; | ||
| 12 | +import 'package:one_poem/poem/models/search_entity.dart'; | ||
| 13 | +import 'package:one_poem/generated/json/search_entity.g.dart'; | ||
| 8 | import 'package:one_poem/timeline/models/friend_entity.dart'; | 14 | import 'package:one_poem/timeline/models/friend_entity.dart'; |
| 15 | +import 'package:one_poem/generated/json/friend_entity.g.dart'; | ||
| 9 | 16 | ||
| 10 | JsonConvert jsonConvert = JsonConvert(); | 17 | JsonConvert jsonConvert = JsonConvert(); |
| 11 | 18 | ||
| ... | @@ -82,6 +89,21 @@ class JsonConvert { | ... | @@ -82,6 +89,21 @@ class JsonConvert { |
| 82 | if(type == (CategoryItemEntity).toString()){ | 89 | if(type == (CategoryItemEntity).toString()){ |
| 83 | return CategoryItemEntity.fromJson(json) as M; | 90 | return CategoryItemEntity.fromJson(json) as M; |
| 84 | } | 91 | } |
| 92 | + if(type == (LangSortEntity).toString()){ | ||
| 93 | + return LangSortEntity.fromJson(json) as M; | ||
| 94 | + } | ||
| 95 | + if(type == (SearchEntity).toString()){ | ||
| 96 | + return SearchEntity.fromJson(json) as M; | ||
| 97 | + } | ||
| 98 | + if(type == (SearchItems).toString()){ | ||
| 99 | + return SearchItems.fromJson(json) as M; | ||
| 100 | + } | ||
| 101 | + if(type == (SearchItemsOwner).toString()){ | ||
| 102 | + return SearchItemsOwner.fromJson(json) as M; | ||
| 103 | + } | ||
| 104 | + if(type == (SearchItemsLicense).toString()){ | ||
| 105 | + return SearchItemsLicense.fromJson(json) as M; | ||
| 106 | + } | ||
| 85 | if(type == (FriendEntity).toString()){ | 107 | if(type == (FriendEntity).toString()){ |
| 86 | return FriendEntity.fromJson(json) as M; | 108 | return FriendEntity.fromJson(json) as M; |
| 87 | } | 109 | } |
| ... | @@ -102,6 +124,21 @@ class JsonConvert { | ... | @@ -102,6 +124,21 @@ class JsonConvert { |
| 102 | if(<CategoryItemEntity>[] is M){ | 124 | if(<CategoryItemEntity>[] is M){ |
| 103 | return data.map<CategoryItemEntity>((Map<String, dynamic> e) => CategoryItemEntity.fromJson(e)).toList() as M; | 125 | return data.map<CategoryItemEntity>((Map<String, dynamic> e) => CategoryItemEntity.fromJson(e)).toList() as M; |
| 104 | } | 126 | } |
| 127 | + if(<LangSortEntity>[] is M){ | ||
| 128 | + return data.map<LangSortEntity>((Map<String, dynamic> e) => LangSortEntity.fromJson(e)).toList() as M; | ||
| 129 | + } | ||
| 130 | + if(<SearchEntity>[] is M){ | ||
| 131 | + return data.map<SearchEntity>((Map<String, dynamic> e) => SearchEntity.fromJson(e)).toList() as M; | ||
| 132 | + } | ||
| 133 | + if(<SearchItems>[] is M){ | ||
| 134 | + return data.map<SearchItems>((Map<String, dynamic> e) => SearchItems.fromJson(e)).toList() as M; | ||
| 135 | + } | ||
| 136 | + if(<SearchItemsOwner>[] is M){ | ||
| 137 | + return data.map<SearchItemsOwner>((Map<String, dynamic> e) => SearchItemsOwner.fromJson(e)).toList() as M; | ||
| 138 | + } | ||
| 139 | + if(<SearchItemsLicense>[] is M){ | ||
| 140 | + return data.map<SearchItemsLicense>((Map<String, dynamic> e) => SearchItemsLicense.fromJson(e)).toList() as M; | ||
| 141 | + } | ||
| 105 | if(<FriendEntity>[] is M){ | 142 | if(<FriendEntity>[] is M){ |
| 106 | return data.map<FriendEntity>((Map<String, dynamic> e) => FriendEntity.fromJson(e)).toList() as M; | 143 | return data.map<FriendEntity>((Map<String, dynamic> e) => FriendEntity.fromJson(e)).toList() as M; |
| 107 | } | 144 | } | ... | ... |
lib/generated/json/lang_sort_entity.g.dart
0 → 100644
| 1 | +import 'package:one_poem/generated/json/base/json_convert_content.dart'; | ||
| 2 | +import 'package:one_poem/poem/models/lang_sort_entity.dart'; | ||
| 3 | + | ||
| 4 | +LangSortEntity $LangSortEntityFromJson(Map<String, dynamic> json) { | ||
| 5 | + final LangSortEntity langSortEntity = LangSortEntity(); | ||
| 6 | + final String? id = jsonConvert.convert<String>(json['id']); | ||
| 7 | + if (id != null) { | ||
| 8 | + langSortEntity.id = id; | ||
| 9 | + } | ||
| 10 | + final String? name = jsonConvert.convert<String>(json['name']); | ||
| 11 | + if (name != null) { | ||
| 12 | + langSortEntity.name = name; | ||
| 13 | + } | ||
| 14 | + return langSortEntity; | ||
| 15 | +} | ||
| 16 | + | ||
| 17 | +Map<String, dynamic> $LangSortEntityToJson(LangSortEntity entity) { | ||
| 18 | + final Map<String, dynamic> data = <String, dynamic>{}; | ||
| 19 | + data['id'] = entity.id; | ||
| 20 | + data['name'] = entity.name; | ||
| 21 | + return data; | ||
| 22 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -2,562 +2,536 @@ import 'package:one_poem/generated/json/base/json_convert_content.dart'; | ... | @@ -2,562 +2,536 @@ import 'package:one_poem/generated/json/base/json_convert_content.dart'; |
| 2 | import 'package:one_poem/poem/models/search_entity.dart'; | 2 | import 'package:one_poem/poem/models/search_entity.dart'; |
| 3 | 3 | ||
| 4 | SearchEntity $SearchEntityFromJson(Map<String, dynamic> json) { | 4 | SearchEntity $SearchEntityFromJson(Map<String, dynamic> json) { |
| 5 | - final SearchEntity searchEntity = SearchEntity(); | 5 | + final SearchEntity searchEntity = SearchEntity(); |
| 6 | - final int? totalCount = jsonConvert.convert<int>(json['total_count']); | 6 | + final int? totalCount = jsonConvert.convert<int>(json['total_count']); |
| 7 | - if (totalCount != null) { | 7 | + if (totalCount != null) { |
| 8 | - searchEntity.totalCount = totalCount; | 8 | + searchEntity.totalCount = totalCount; |
| 9 | - } | 9 | + } |
| 10 | - final bool? incompleteResults = | 10 | + final bool? incompleteResults = jsonConvert.convert<bool>(json['incomplete_results']); |
| 11 | - jsonConvert.convert<bool>(json['incomplete_results']); | 11 | + if (incompleteResults != null) { |
| 12 | - if (incompleteResults != null) { | 12 | + searchEntity.incompleteResults = incompleteResults; |
| 13 | - searchEntity.incompleteResults = incompleteResults; | 13 | + } |
| 14 | - } | 14 | + final List<SearchItems>? items = jsonConvert.convertListNotNull<SearchItems>(json['items']); |
| 15 | - final List<SearchItems>? items = | 15 | + if (items != null) { |
| 16 | - jsonConvert.convertListNotNull<SearchItems>(json['items']); | 16 | + searchEntity.items = items; |
| 17 | - if (items != null) { | 17 | + } |
| 18 | - searchEntity.items = items; | 18 | + return searchEntity; |
| 19 | - } | ||
| 20 | - return searchEntity; | ||
| 21 | } | 19 | } |
| 22 | 20 | ||
| 23 | Map<String, dynamic> $SearchEntityToJson(SearchEntity entity) { | 21 | Map<String, dynamic> $SearchEntityToJson(SearchEntity entity) { |
| 24 | - final Map<String, dynamic> data = <String, dynamic>{}; | 22 | + final Map<String, dynamic> data = <String, dynamic>{}; |
| 25 | - data['total_count'] = entity.totalCount; | 23 | + data['total_count'] = entity.totalCount; |
| 26 | - data['incomplete_results'] = entity.incompleteResults; | 24 | + data['incomplete_results'] = entity.incompleteResults; |
| 27 | - data['items'] = entity.items?.map((v) => v.toJson()).toList(); | 25 | + data['items'] = entity.items?.map((v) => v.toJson()).toList(); |
| 28 | - return data; | 26 | + return data; |
| 29 | } | 27 | } |
| 30 | 28 | ||
| 31 | SearchItems $SearchItemsFromJson(Map<String, dynamic> json) { | 29 | SearchItems $SearchItemsFromJson(Map<String, dynamic> json) { |
| 32 | - final SearchItems searchItems = SearchItems(); | 30 | + final SearchItems searchItems = SearchItems(); |
| 33 | - final int? id = jsonConvert.convert<int>(json['id']); | 31 | + final int? id = jsonConvert.convert<int>(json['id']); |
| 34 | - if (id != null) { | 32 | + if (id != null) { |
| 35 | - searchItems.id = id; | 33 | + searchItems.id = id; |
| 36 | - } | 34 | + } |
| 37 | - final String? nodeId = jsonConvert.convert<String>(json['node_id']); | 35 | + final String? nodeId = jsonConvert.convert<String>(json['node_id']); |
| 38 | - if (nodeId != null) { | 36 | + if (nodeId != null) { |
| 39 | - searchItems.nodeId = nodeId; | 37 | + searchItems.nodeId = nodeId; |
| 40 | - } | 38 | + } |
| 41 | - final String? name = jsonConvert.convert<String>(json['name']); | 39 | + final String? name = jsonConvert.convert<String>(json['name']); |
| 42 | - if (name != null) { | 40 | + if (name != null) { |
| 43 | - searchItems.name = name; | 41 | + searchItems.name = name; |
| 44 | - } | 42 | + } |
| 45 | - final String? fullName = jsonConvert.convert<String>(json['full_name']); | 43 | + final String? fullName = jsonConvert.convert<String>(json['full_name']); |
| 46 | - if (fullName != null) { | 44 | + if (fullName != null) { |
| 47 | - searchItems.fullName = fullName; | 45 | + searchItems.fullName = fullName; |
| 48 | - } | 46 | + } |
| 49 | - final bool? private = jsonConvert.convert<bool>(json['private']); | 47 | + final bool? private = jsonConvert.convert<bool>(json['private']); |
| 50 | - if (private != null) { | 48 | + if (private != null) { |
| 51 | - searchItems.private = private; | 49 | + searchItems.private = private; |
| 52 | - } | 50 | + } |
| 53 | - final SearchItemsOwner? owner = | 51 | + final SearchItemsOwner? owner = jsonConvert.convert<SearchItemsOwner>(json['owner']); |
| 54 | - jsonConvert.convert<SearchItemsOwner>(json['owner']); | 52 | + if (owner != null) { |
| 55 | - if (owner != null) { | 53 | + searchItems.owner = owner; |
| 56 | - searchItems.owner = owner; | 54 | + } |
| 57 | - } | 55 | + final String? htmlUrl = jsonConvert.convert<String>(json['html_url']); |
| 58 | - final String? htmlUrl = jsonConvert.convert<String>(json['html_url']); | 56 | + if (htmlUrl != null) { |
| 59 | - if (htmlUrl != null) { | 57 | + searchItems.htmlUrl = htmlUrl; |
| 60 | - searchItems.htmlUrl = htmlUrl; | 58 | + } |
| 61 | - } | 59 | + final String? description = jsonConvert.convert<String>(json['description']); |
| 62 | - final String? description = jsonConvert.convert<String>(json['description']); | 60 | + if (description != null) { |
| 63 | - if (description != null) { | 61 | + searchItems.description = description; |
| 64 | - searchItems.description = description; | 62 | + } |
| 65 | - } | 63 | + final bool? fork = jsonConvert.convert<bool>(json['fork']); |
| 66 | - final bool? fork = jsonConvert.convert<bool>(json['fork']); | 64 | + if (fork != null) { |
| 67 | - if (fork != null) { | 65 | + searchItems.fork = fork; |
| 68 | - searchItems.fork = fork; | 66 | + } |
| 69 | - } | 67 | + final String? url = jsonConvert.convert<String>(json['url']); |
| 70 | - final String? url = jsonConvert.convert<String>(json['url']); | 68 | + if (url != null) { |
| 71 | - if (url != null) { | 69 | + searchItems.url = url; |
| 72 | - searchItems.url = url; | 70 | + } |
| 73 | - } | 71 | + final String? forksUrl = jsonConvert.convert<String>(json['forks_url']); |
| 74 | - final String? forksUrl = jsonConvert.convert<String>(json['forks_url']); | 72 | + if (forksUrl != null) { |
| 75 | - if (forksUrl != null) { | 73 | + searchItems.forksUrl = forksUrl; |
| 76 | - searchItems.forksUrl = forksUrl; | 74 | + } |
| 77 | - } | 75 | + final String? keysUrl = jsonConvert.convert<String>(json['keys_url']); |
| 78 | - final String? keysUrl = jsonConvert.convert<String>(json['keys_url']); | 76 | + if (keysUrl != null) { |
| 79 | - if (keysUrl != null) { | 77 | + searchItems.keysUrl = keysUrl; |
| 80 | - searchItems.keysUrl = keysUrl; | 78 | + } |
| 81 | - } | 79 | + final String? collaboratorsUrl = jsonConvert.convert<String>(json['collaborators_url']); |
| 82 | - final String? collaboratorsUrl = | 80 | + if (collaboratorsUrl != null) { |
| 83 | - jsonConvert.convert<String>(json['collaborators_url']); | 81 | + searchItems.collaboratorsUrl = collaboratorsUrl; |
| 84 | - if (collaboratorsUrl != null) { | 82 | + } |
| 85 | - searchItems.collaboratorsUrl = collaboratorsUrl; | 83 | + final String? teamsUrl = jsonConvert.convert<String>(json['teams_url']); |
| 86 | - } | 84 | + if (teamsUrl != null) { |
| 87 | - final String? teamsUrl = jsonConvert.convert<String>(json['teams_url']); | 85 | + searchItems.teamsUrl = teamsUrl; |
| 88 | - if (teamsUrl != null) { | 86 | + } |
| 89 | - searchItems.teamsUrl = teamsUrl; | 87 | + final String? hooksUrl = jsonConvert.convert<String>(json['hooks_url']); |
| 90 | - } | 88 | + if (hooksUrl != null) { |
| 91 | - final String? hooksUrl = jsonConvert.convert<String>(json['hooks_url']); | 89 | + searchItems.hooksUrl = hooksUrl; |
| 92 | - if (hooksUrl != null) { | 90 | + } |
| 93 | - searchItems.hooksUrl = hooksUrl; | 91 | + final String? issueEventsUrl = jsonConvert.convert<String>(json['issue_events_url']); |
| 94 | - } | 92 | + if (issueEventsUrl != null) { |
| 95 | - final String? issueEventsUrl = | 93 | + searchItems.issueEventsUrl = issueEventsUrl; |
| 96 | - jsonConvert.convert<String>(json['issue_events_url']); | 94 | + } |
| 97 | - if (issueEventsUrl != null) { | 95 | + final String? eventsUrl = jsonConvert.convert<String>(json['events_url']); |
| 98 | - searchItems.issueEventsUrl = issueEventsUrl; | 96 | + if (eventsUrl != null) { |
| 99 | - } | 97 | + searchItems.eventsUrl = eventsUrl; |
| 100 | - final String? eventsUrl = jsonConvert.convert<String>(json['events_url']); | 98 | + } |
| 101 | - if (eventsUrl != null) { | 99 | + final String? assigneesUrl = jsonConvert.convert<String>(json['assignees_url']); |
| 102 | - searchItems.eventsUrl = eventsUrl; | 100 | + if (assigneesUrl != null) { |
| 103 | - } | 101 | + searchItems.assigneesUrl = assigneesUrl; |
| 104 | - final String? assigneesUrl = | 102 | + } |
| 105 | - jsonConvert.convert<String>(json['assignees_url']); | 103 | + final String? branchesUrl = jsonConvert.convert<String>(json['branches_url']); |
| 106 | - if (assigneesUrl != null) { | 104 | + if (branchesUrl != null) { |
| 107 | - searchItems.assigneesUrl = assigneesUrl; | 105 | + searchItems.branchesUrl = branchesUrl; |
| 108 | - } | 106 | + } |
| 109 | - final String? branchesUrl = jsonConvert.convert<String>(json['branches_url']); | 107 | + final String? tagsUrl = jsonConvert.convert<String>(json['tags_url']); |
| 110 | - if (branchesUrl != null) { | 108 | + if (tagsUrl != null) { |
| 111 | - searchItems.branchesUrl = branchesUrl; | 109 | + searchItems.tagsUrl = tagsUrl; |
| 112 | - } | 110 | + } |
| 113 | - final String? tagsUrl = jsonConvert.convert<String>(json['tags_url']); | 111 | + final String? blobsUrl = jsonConvert.convert<String>(json['blobs_url']); |
| 114 | - if (tagsUrl != null) { | 112 | + if (blobsUrl != null) { |
| 115 | - searchItems.tagsUrl = tagsUrl; | 113 | + searchItems.blobsUrl = blobsUrl; |
| 116 | - } | 114 | + } |
| 117 | - final String? blobsUrl = jsonConvert.convert<String>(json['blobs_url']); | 115 | + final String? gitTagsUrl = jsonConvert.convert<String>(json['git_tags_url']); |
| 118 | - if (blobsUrl != null) { | 116 | + if (gitTagsUrl != null) { |
| 119 | - searchItems.blobsUrl = blobsUrl; | 117 | + searchItems.gitTagsUrl = gitTagsUrl; |
| 120 | - } | 118 | + } |
| 121 | - final String? gitTagsUrl = jsonConvert.convert<String>(json['git_tags_url']); | 119 | + final String? gitRefsUrl = jsonConvert.convert<String>(json['git_refs_url']); |
| 122 | - if (gitTagsUrl != null) { | 120 | + if (gitRefsUrl != null) { |
| 123 | - searchItems.gitTagsUrl = gitTagsUrl; | 121 | + searchItems.gitRefsUrl = gitRefsUrl; |
| 124 | - } | 122 | + } |
| 125 | - final String? gitRefsUrl = jsonConvert.convert<String>(json['git_refs_url']); | 123 | + final String? treesUrl = jsonConvert.convert<String>(json['trees_url']); |
| 126 | - if (gitRefsUrl != null) { | 124 | + if (treesUrl != null) { |
| 127 | - searchItems.gitRefsUrl = gitRefsUrl; | 125 | + searchItems.treesUrl = treesUrl; |
| 128 | - } | 126 | + } |
| 129 | - final String? treesUrl = jsonConvert.convert<String>(json['trees_url']); | 127 | + final String? statusesUrl = jsonConvert.convert<String>(json['statuses_url']); |
| 130 | - if (treesUrl != null) { | 128 | + if (statusesUrl != null) { |
| 131 | - searchItems.treesUrl = treesUrl; | 129 | + searchItems.statusesUrl = statusesUrl; |
| 132 | - } | 130 | + } |
| 133 | - final String? statusesUrl = jsonConvert.convert<String>(json['statuses_url']); | 131 | + final String? languagesUrl = jsonConvert.convert<String>(json['languages_url']); |
| 134 | - if (statusesUrl != null) { | 132 | + if (languagesUrl != null) { |
| 135 | - searchItems.statusesUrl = statusesUrl; | 133 | + searchItems.languagesUrl = languagesUrl; |
| 136 | - } | 134 | + } |
| 137 | - final String? languagesUrl = | 135 | + final String? stargazersUrl = jsonConvert.convert<String>(json['stargazers_url']); |
| 138 | - jsonConvert.convert<String>(json['languages_url']); | 136 | + if (stargazersUrl != null) { |
| 139 | - if (languagesUrl != null) { | 137 | + searchItems.stargazersUrl = stargazersUrl; |
| 140 | - searchItems.languagesUrl = languagesUrl; | 138 | + } |
| 141 | - } | 139 | + final String? contributorsUrl = jsonConvert.convert<String>(json['contributors_url']); |
| 142 | - final String? stargazersUrl = | 140 | + if (contributorsUrl != null) { |
| 143 | - jsonConvert.convert<String>(json['stargazers_url']); | 141 | + searchItems.contributorsUrl = contributorsUrl; |
| 144 | - if (stargazersUrl != null) { | 142 | + } |
| 145 | - searchItems.stargazersUrl = stargazersUrl; | 143 | + final String? subscribersUrl = jsonConvert.convert<String>(json['subscribers_url']); |
| 146 | - } | 144 | + if (subscribersUrl != null) { |
| 147 | - final String? contributorsUrl = | 145 | + searchItems.subscribersUrl = subscribersUrl; |
| 148 | - jsonConvert.convert<String>(json['contributors_url']); | 146 | + } |
| 149 | - if (contributorsUrl != null) { | 147 | + final String? subscriptionUrl = jsonConvert.convert<String>(json['subscription_url']); |
| 150 | - searchItems.contributorsUrl = contributorsUrl; | 148 | + if (subscriptionUrl != null) { |
| 151 | - } | 149 | + searchItems.subscriptionUrl = subscriptionUrl; |
| 152 | - final String? subscribersUrl = | 150 | + } |
| 153 | - jsonConvert.convert<String>(json['subscribers_url']); | 151 | + final String? commitsUrl = jsonConvert.convert<String>(json['commits_url']); |
| 154 | - if (subscribersUrl != null) { | 152 | + if (commitsUrl != null) { |
| 155 | - searchItems.subscribersUrl = subscribersUrl; | 153 | + searchItems.commitsUrl = commitsUrl; |
| 156 | - } | 154 | + } |
| 157 | - final String? subscriptionUrl = | 155 | + final String? gitCommitsUrl = jsonConvert.convert<String>(json['git_commits_url']); |
| 158 | - jsonConvert.convert<String>(json['subscription_url']); | 156 | + if (gitCommitsUrl != null) { |
| 159 | - if (subscriptionUrl != null) { | 157 | + searchItems.gitCommitsUrl = gitCommitsUrl; |
| 160 | - searchItems.subscriptionUrl = subscriptionUrl; | 158 | + } |
| 161 | - } | 159 | + final String? commentsUrl = jsonConvert.convert<String>(json['comments_url']); |
| 162 | - final String? commitsUrl = jsonConvert.convert<String>(json['commits_url']); | 160 | + if (commentsUrl != null) { |
| 163 | - if (commitsUrl != null) { | 161 | + searchItems.commentsUrl = commentsUrl; |
| 164 | - searchItems.commitsUrl = commitsUrl; | 162 | + } |
| 165 | - } | 163 | + final String? issueCommentUrl = jsonConvert.convert<String>(json['issue_comment_url']); |
| 166 | - final String? gitCommitsUrl = | 164 | + if (issueCommentUrl != null) { |
| 167 | - jsonConvert.convert<String>(json['git_commits_url']); | 165 | + searchItems.issueCommentUrl = issueCommentUrl; |
| 168 | - if (gitCommitsUrl != null) { | 166 | + } |
| 169 | - searchItems.gitCommitsUrl = gitCommitsUrl; | 167 | + final String? contentsUrl = jsonConvert.convert<String>(json['contents_url']); |
| 170 | - } | 168 | + if (contentsUrl != null) { |
| 171 | - final String? commentsUrl = jsonConvert.convert<String>(json['comments_url']); | 169 | + searchItems.contentsUrl = contentsUrl; |
| 172 | - if (commentsUrl != null) { | 170 | + } |
| 173 | - searchItems.commentsUrl = commentsUrl; | 171 | + final String? compareUrl = jsonConvert.convert<String>(json['compare_url']); |
| 174 | - } | 172 | + if (compareUrl != null) { |
| 175 | - final String? issueCommentUrl = | 173 | + searchItems.compareUrl = compareUrl; |
| 176 | - jsonConvert.convert<String>(json['issue_comment_url']); | 174 | + } |
| 177 | - if (issueCommentUrl != null) { | 175 | + final String? mergesUrl = jsonConvert.convert<String>(json['merges_url']); |
| 178 | - searchItems.issueCommentUrl = issueCommentUrl; | 176 | + if (mergesUrl != null) { |
| 179 | - } | 177 | + searchItems.mergesUrl = mergesUrl; |
| 180 | - final String? contentsUrl = jsonConvert.convert<String>(json['contents_url']); | 178 | + } |
| 181 | - if (contentsUrl != null) { | 179 | + final String? archiveUrl = jsonConvert.convert<String>(json['archive_url']); |
| 182 | - searchItems.contentsUrl = contentsUrl; | 180 | + if (archiveUrl != null) { |
| 183 | - } | 181 | + searchItems.archiveUrl = archiveUrl; |
| 184 | - final String? compareUrl = jsonConvert.convert<String>(json['compare_url']); | 182 | + } |
| 185 | - if (compareUrl != null) { | 183 | + final String? downloadsUrl = jsonConvert.convert<String>(json['downloads_url']); |
| 186 | - searchItems.compareUrl = compareUrl; | 184 | + if (downloadsUrl != null) { |
| 187 | - } | 185 | + searchItems.downloadsUrl = downloadsUrl; |
| 188 | - final String? mergesUrl = jsonConvert.convert<String>(json['merges_url']); | 186 | + } |
| 189 | - if (mergesUrl != null) { | 187 | + final String? issuesUrl = jsonConvert.convert<String>(json['issues_url']); |
| 190 | - searchItems.mergesUrl = mergesUrl; | 188 | + if (issuesUrl != null) { |
| 191 | - } | 189 | + searchItems.issuesUrl = issuesUrl; |
| 192 | - final String? archiveUrl = jsonConvert.convert<String>(json['archive_url']); | 190 | + } |
| 193 | - if (archiveUrl != null) { | 191 | + final String? pullsUrl = jsonConvert.convert<String>(json['pulls_url']); |
| 194 | - searchItems.archiveUrl = archiveUrl; | 192 | + if (pullsUrl != null) { |
| 195 | - } | 193 | + searchItems.pullsUrl = pullsUrl; |
| 196 | - final String? downloadsUrl = | 194 | + } |
| 197 | - jsonConvert.convert<String>(json['downloads_url']); | 195 | + final String? milestonesUrl = jsonConvert.convert<String>(json['milestones_url']); |
| 198 | - if (downloadsUrl != null) { | 196 | + if (milestonesUrl != null) { |
| 199 | - searchItems.downloadsUrl = downloadsUrl; | 197 | + searchItems.milestonesUrl = milestonesUrl; |
| 200 | - } | 198 | + } |
| 201 | - final String? issuesUrl = jsonConvert.convert<String>(json['issues_url']); | 199 | + final String? notificationsUrl = jsonConvert.convert<String>(json['notifications_url']); |
| 202 | - if (issuesUrl != null) { | 200 | + if (notificationsUrl != null) { |
| 203 | - searchItems.issuesUrl = issuesUrl; | 201 | + searchItems.notificationsUrl = notificationsUrl; |
| 204 | - } | 202 | + } |
| 205 | - final String? pullsUrl = jsonConvert.convert<String>(json['pulls_url']); | 203 | + final String? labelsUrl = jsonConvert.convert<String>(json['labels_url']); |
| 206 | - if (pullsUrl != null) { | 204 | + if (labelsUrl != null) { |
| 207 | - searchItems.pullsUrl = pullsUrl; | 205 | + searchItems.labelsUrl = labelsUrl; |
| 208 | - } | 206 | + } |
| 209 | - final String? milestonesUrl = | 207 | + final String? releasesUrl = jsonConvert.convert<String>(json['releases_url']); |
| 210 | - jsonConvert.convert<String>(json['milestones_url']); | 208 | + if (releasesUrl != null) { |
| 211 | - if (milestonesUrl != null) { | 209 | + searchItems.releasesUrl = releasesUrl; |
| 212 | - searchItems.milestonesUrl = milestonesUrl; | 210 | + } |
| 213 | - } | 211 | + final String? deploymentsUrl = jsonConvert.convert<String>(json['deployments_url']); |
| 214 | - final String? notificationsUrl = | 212 | + if (deploymentsUrl != null) { |
| 215 | - jsonConvert.convert<String>(json['notifications_url']); | 213 | + searchItems.deploymentsUrl = deploymentsUrl; |
| 216 | - if (notificationsUrl != null) { | 214 | + } |
| 217 | - searchItems.notificationsUrl = notificationsUrl; | 215 | + final String? createdAt = jsonConvert.convert<String>(json['created_at']); |
| 218 | - } | 216 | + if (createdAt != null) { |
| 219 | - final String? labelsUrl = jsonConvert.convert<String>(json['labels_url']); | 217 | + searchItems.createdAt = createdAt; |
| 220 | - if (labelsUrl != null) { | 218 | + } |
| 221 | - searchItems.labelsUrl = labelsUrl; | 219 | + final String? updatedAt = jsonConvert.convert<String>(json['updated_at']); |
| 222 | - } | 220 | + if (updatedAt != null) { |
| 223 | - final String? releasesUrl = jsonConvert.convert<String>(json['releases_url']); | 221 | + searchItems.updatedAt = updatedAt; |
| 224 | - if (releasesUrl != null) { | 222 | + } |
| 225 | - searchItems.releasesUrl = releasesUrl; | 223 | + final String? pushedAt = jsonConvert.convert<String>(json['pushed_at']); |
| 226 | - } | 224 | + if (pushedAt != null) { |
| 227 | - final String? deploymentsUrl = | 225 | + searchItems.pushedAt = pushedAt; |
| 228 | - jsonConvert.convert<String>(json['deployments_url']); | 226 | + } |
| 229 | - if (deploymentsUrl != null) { | 227 | + final String? gitUrl = jsonConvert.convert<String>(json['git_url']); |
| 230 | - searchItems.deploymentsUrl = deploymentsUrl; | 228 | + if (gitUrl != null) { |
| 231 | - } | 229 | + searchItems.gitUrl = gitUrl; |
| 232 | - final String? createdAt = jsonConvert.convert<String>(json['created_at']); | 230 | + } |
| 233 | - if (createdAt != null) { | 231 | + final String? sshUrl = jsonConvert.convert<String>(json['ssh_url']); |
| 234 | - searchItems.createdAt = createdAt; | 232 | + if (sshUrl != null) { |
| 235 | - } | 233 | + searchItems.sshUrl = sshUrl; |
| 236 | - final String? updatedAt = jsonConvert.convert<String>(json['updated_at']); | 234 | + } |
| 237 | - if (updatedAt != null) { | 235 | + final String? cloneUrl = jsonConvert.convert<String>(json['clone_url']); |
| 238 | - searchItems.updatedAt = updatedAt; | 236 | + if (cloneUrl != null) { |
| 239 | - } | 237 | + searchItems.cloneUrl = cloneUrl; |
| 240 | - final String? pushedAt = jsonConvert.convert<String>(json['pushed_at']); | 238 | + } |
| 241 | - if (pushedAt != null) { | 239 | + final String? svnUrl = jsonConvert.convert<String>(json['svn_url']); |
| 242 | - searchItems.pushedAt = pushedAt; | 240 | + if (svnUrl != null) { |
| 243 | - } | 241 | + searchItems.svnUrl = svnUrl; |
| 244 | - final String? gitUrl = jsonConvert.convert<String>(json['git_url']); | 242 | + } |
| 245 | - if (gitUrl != null) { | 243 | + final String? homepage = jsonConvert.convert<String>(json['homepage']); |
| 246 | - searchItems.gitUrl = gitUrl; | 244 | + if (homepage != null) { |
| 247 | - } | 245 | + searchItems.homepage = homepage; |
| 248 | - final String? sshUrl = jsonConvert.convert<String>(json['ssh_url']); | 246 | + } |
| 249 | - if (sshUrl != null) { | 247 | + final int? size = jsonConvert.convert<int>(json['size']); |
| 250 | - searchItems.sshUrl = sshUrl; | 248 | + if (size != null) { |
| 251 | - } | 249 | + searchItems.size = size; |
| 252 | - final String? cloneUrl = jsonConvert.convert<String>(json['clone_url']); | 250 | + } |
| 253 | - if (cloneUrl != null) { | 251 | + final int? stargazersCount = jsonConvert.convert<int>(json['stargazers_count']); |
| 254 | - searchItems.cloneUrl = cloneUrl; | 252 | + if (stargazersCount != null) { |
| 255 | - } | 253 | + searchItems.stargazersCount = stargazersCount; |
| 256 | - final String? svnUrl = jsonConvert.convert<String>(json['svn_url']); | 254 | + } |
| 257 | - if (svnUrl != null) { | 255 | + final int? watchersCount = jsonConvert.convert<int>(json['watchers_count']); |
| 258 | - searchItems.svnUrl = svnUrl; | 256 | + if (watchersCount != null) { |
| 259 | - } | 257 | + searchItems.watchersCount = watchersCount; |
| 260 | - final String? homepage = jsonConvert.convert<String>(json['homepage']); | 258 | + } |
| 261 | - if (homepage != null) { | 259 | + final String? language = jsonConvert.convert<String>(json['language']); |
| 262 | - searchItems.homepage = homepage; | 260 | + if (language != null) { |
| 263 | - } | 261 | + searchItems.language = language; |
| 264 | - final int? size = jsonConvert.convert<int>(json['size']); | 262 | + } |
| 265 | - if (size != null) { | 263 | + final bool? hasIssues = jsonConvert.convert<bool>(json['has_issues']); |
| 266 | - searchItems.size = size; | 264 | + if (hasIssues != null) { |
| 267 | - } | 265 | + searchItems.hasIssues = hasIssues; |
| 268 | - final int? stargazersCount = | 266 | + } |
| 269 | - jsonConvert.convert<int>(json['stargazers_count']); | 267 | + final bool? hasProjects = jsonConvert.convert<bool>(json['has_projects']); |
| 270 | - if (stargazersCount != null) { | 268 | + if (hasProjects != null) { |
| 271 | - searchItems.stargazersCount = stargazersCount; | 269 | + searchItems.hasProjects = hasProjects; |
| 272 | - } | 270 | + } |
| 273 | - final int? watchersCount = jsonConvert.convert<int>(json['watchers_count']); | 271 | + final bool? hasDownloads = jsonConvert.convert<bool>(json['has_downloads']); |
| 274 | - if (watchersCount != null) { | 272 | + if (hasDownloads != null) { |
| 275 | - searchItems.watchersCount = watchersCount; | 273 | + searchItems.hasDownloads = hasDownloads; |
| 276 | - } | 274 | + } |
| 277 | - final String? language = jsonConvert.convert<String>(json['language']); | 275 | + final bool? hasWiki = jsonConvert.convert<bool>(json['has_wiki']); |
| 278 | - if (language != null) { | 276 | + if (hasWiki != null) { |
| 279 | - searchItems.language = language; | 277 | + searchItems.hasWiki = hasWiki; |
| 280 | - } | 278 | + } |
| 281 | - final bool? hasIssues = jsonConvert.convert<bool>(json['has_issues']); | 279 | + final bool? hasPages = jsonConvert.convert<bool>(json['has_pages']); |
| 282 | - if (hasIssues != null) { | 280 | + if (hasPages != null) { |
| 283 | - searchItems.hasIssues = hasIssues; | 281 | + searchItems.hasPages = hasPages; |
| 284 | - } | 282 | + } |
| 285 | - final bool? hasProjects = jsonConvert.convert<bool>(json['has_projects']); | 283 | + final int? forksCount = jsonConvert.convert<int>(json['forks_count']); |
| 286 | - if (hasProjects != null) { | 284 | + if (forksCount != null) { |
| 287 | - searchItems.hasProjects = hasProjects; | 285 | + searchItems.forksCount = forksCount; |
| 288 | - } | 286 | + } |
| 289 | - final bool? hasDownloads = jsonConvert.convert<bool>(json['has_downloads']); | 287 | + final bool? archived = jsonConvert.convert<bool>(json['archived']); |
| 290 | - if (hasDownloads != null) { | 288 | + if (archived != null) { |
| 291 | - searchItems.hasDownloads = hasDownloads; | 289 | + searchItems.archived = archived; |
| 292 | - } | 290 | + } |
| 293 | - final bool? hasWiki = jsonConvert.convert<bool>(json['has_wiki']); | 291 | + final bool? disabled = jsonConvert.convert<bool>(json['disabled']); |
| 294 | - if (hasWiki != null) { | 292 | + if (disabled != null) { |
| 295 | - searchItems.hasWiki = hasWiki; | 293 | + searchItems.disabled = disabled; |
| 296 | - } | 294 | + } |
| 297 | - final bool? hasPages = jsonConvert.convert<bool>(json['has_pages']); | 295 | + final int? openIssuesCount = jsonConvert.convert<int>(json['open_issues_count']); |
| 298 | - if (hasPages != null) { | 296 | + if (openIssuesCount != null) { |
| 299 | - searchItems.hasPages = hasPages; | 297 | + searchItems.openIssuesCount = openIssuesCount; |
| 300 | - } | 298 | + } |
| 301 | - final int? forksCount = jsonConvert.convert<int>(json['forks_count']); | 299 | + final SearchItemsLicense? license = jsonConvert.convert<SearchItemsLicense>(json['license']); |
| 302 | - if (forksCount != null) { | 300 | + if (license != null) { |
| 303 | - searchItems.forksCount = forksCount; | 301 | + searchItems.license = license; |
| 304 | - } | 302 | + } |
| 305 | - final bool? archived = jsonConvert.convert<bool>(json['archived']); | 303 | + final int? forks = jsonConvert.convert<int>(json['forks']); |
| 306 | - if (archived != null) { | 304 | + if (forks != null) { |
| 307 | - searchItems.archived = archived; | 305 | + searchItems.forks = forks; |
| 308 | - } | 306 | + } |
| 309 | - final bool? disabled = jsonConvert.convert<bool>(json['disabled']); | 307 | + final int? openIssues = jsonConvert.convert<int>(json['open_issues']); |
| 310 | - if (disabled != null) { | 308 | + if (openIssues != null) { |
| 311 | - searchItems.disabled = disabled; | 309 | + searchItems.openIssues = openIssues; |
| 312 | - } | 310 | + } |
| 313 | - final int? openIssuesCount = | 311 | + final int? watchers = jsonConvert.convert<int>(json['watchers']); |
| 314 | - jsonConvert.convert<int>(json['open_issues_count']); | 312 | + if (watchers != null) { |
| 315 | - if (openIssuesCount != null) { | 313 | + searchItems.watchers = watchers; |
| 316 | - searchItems.openIssuesCount = openIssuesCount; | 314 | + } |
| 317 | - } | 315 | + final String? defaultBranch = jsonConvert.convert<String>(json['default_branch']); |
| 318 | - final SearchItemsLicense? license = | 316 | + if (defaultBranch != null) { |
| 319 | - jsonConvert.convert<SearchItemsLicense>(json['license']); | 317 | + searchItems.defaultBranch = defaultBranch; |
| 320 | - if (license != null) { | 318 | + } |
| 321 | - searchItems.license = license; | 319 | + final double? score = jsonConvert.convert<double>(json['score']); |
| 322 | - } | 320 | + if (score != null) { |
| 323 | - final int? forks = jsonConvert.convert<int>(json['forks']); | 321 | + searchItems.score = score; |
| 324 | - if (forks != null) { | 322 | + } |
| 325 | - searchItems.forks = forks; | 323 | + return searchItems; |
| 326 | - } | ||
| 327 | - final int? openIssues = jsonConvert.convert<int>(json['open_issues']); | ||
| 328 | - if (openIssues != null) { | ||
| 329 | - searchItems.openIssues = openIssues; | ||
| 330 | - } | ||
| 331 | - final int? watchers = jsonConvert.convert<int>(json['watchers']); | ||
| 332 | - if (watchers != null) { | ||
| 333 | - searchItems.watchers = watchers; | ||
| 334 | - } | ||
| 335 | - final String? defaultBranch = | ||
| 336 | - jsonConvert.convert<String>(json['default_branch']); | ||
| 337 | - if (defaultBranch != null) { | ||
| 338 | - searchItems.defaultBranch = defaultBranch; | ||
| 339 | - } | ||
| 340 | - final double? score = jsonConvert.convert<double>(json['score']); | ||
| 341 | - if (score != null) { | ||
| 342 | - searchItems.score = score; | ||
| 343 | - } | ||
| 344 | - return searchItems; | ||
| 345 | } | 324 | } |
| 346 | 325 | ||
| 347 | Map<String, dynamic> $SearchItemsToJson(SearchItems entity) { | 326 | Map<String, dynamic> $SearchItemsToJson(SearchItems entity) { |
| 348 | - final Map<String, dynamic> data = <String, dynamic>{}; | 327 | + final Map<String, dynamic> data = <String, dynamic>{}; |
| 349 | - data['id'] = entity.id; | 328 | + data['id'] = entity.id; |
| 350 | - data['node_id'] = entity.nodeId; | 329 | + data['node_id'] = entity.nodeId; |
| 351 | - data['name'] = entity.name; | 330 | + data['name'] = entity.name; |
| 352 | - data['full_name'] = entity.fullName; | 331 | + data['full_name'] = entity.fullName; |
| 353 | - data['private'] = entity.private; | 332 | + data['private'] = entity.private; |
| 354 | - data['owner'] = entity.owner?.toJson(); | 333 | + data['owner'] = entity.owner?.toJson(); |
| 355 | - data['html_url'] = entity.htmlUrl; | 334 | + data['html_url'] = entity.htmlUrl; |
| 356 | - data['description'] = entity.description; | 335 | + data['description'] = entity.description; |
| 357 | - data['fork'] = entity.fork; | 336 | + data['fork'] = entity.fork; |
| 358 | - data['url'] = entity.url; | 337 | + data['url'] = entity.url; |
| 359 | - data['forks_url'] = entity.forksUrl; | 338 | + data['forks_url'] = entity.forksUrl; |
| 360 | - data['keys_url'] = entity.keysUrl; | 339 | + data['keys_url'] = entity.keysUrl; |
| 361 | - data['collaborators_url'] = entity.collaboratorsUrl; | 340 | + data['collaborators_url'] = entity.collaboratorsUrl; |
| 362 | - data['teams_url'] = entity.teamsUrl; | 341 | + data['teams_url'] = entity.teamsUrl; |
| 363 | - data['hooks_url'] = entity.hooksUrl; | 342 | + data['hooks_url'] = entity.hooksUrl; |
| 364 | - data['issue_events_url'] = entity.issueEventsUrl; | 343 | + data['issue_events_url'] = entity.issueEventsUrl; |
| 365 | - data['events_url'] = entity.eventsUrl; | 344 | + data['events_url'] = entity.eventsUrl; |
| 366 | - data['assignees_url'] = entity.assigneesUrl; | 345 | + data['assignees_url'] = entity.assigneesUrl; |
| 367 | - data['branches_url'] = entity.branchesUrl; | 346 | + data['branches_url'] = entity.branchesUrl; |
| 368 | - data['tags_url'] = entity.tagsUrl; | 347 | + data['tags_url'] = entity.tagsUrl; |
| 369 | - data['blobs_url'] = entity.blobsUrl; | 348 | + data['blobs_url'] = entity.blobsUrl; |
| 370 | - data['git_tags_url'] = entity.gitTagsUrl; | 349 | + data['git_tags_url'] = entity.gitTagsUrl; |
| 371 | - data['git_refs_url'] = entity.gitRefsUrl; | 350 | + data['git_refs_url'] = entity.gitRefsUrl; |
| 372 | - data['trees_url'] = entity.treesUrl; | 351 | + data['trees_url'] = entity.treesUrl; |
| 373 | - data['statuses_url'] = entity.statusesUrl; | 352 | + data['statuses_url'] = entity.statusesUrl; |
| 374 | - data['languages_url'] = entity.languagesUrl; | 353 | + data['languages_url'] = entity.languagesUrl; |
| 375 | - data['stargazers_url'] = entity.stargazersUrl; | 354 | + data['stargazers_url'] = entity.stargazersUrl; |
| 376 | - data['contributors_url'] = entity.contributorsUrl; | 355 | + data['contributors_url'] = entity.contributorsUrl; |
| 377 | - data['subscribers_url'] = entity.subscribersUrl; | 356 | + data['subscribers_url'] = entity.subscribersUrl; |
| 378 | - data['subscription_url'] = entity.subscriptionUrl; | 357 | + data['subscription_url'] = entity.subscriptionUrl; |
| 379 | - data['commits_url'] = entity.commitsUrl; | 358 | + data['commits_url'] = entity.commitsUrl; |
| 380 | - data['git_commits_url'] = entity.gitCommitsUrl; | 359 | + data['git_commits_url'] = entity.gitCommitsUrl; |
| 381 | - data['comments_url'] = entity.commentsUrl; | 360 | + data['comments_url'] = entity.commentsUrl; |
| 382 | - data['issue_comment_url'] = entity.issueCommentUrl; | 361 | + data['issue_comment_url'] = entity.issueCommentUrl; |
| 383 | - data['contents_url'] = entity.contentsUrl; | 362 | + data['contents_url'] = entity.contentsUrl; |
| 384 | - data['compare_url'] = entity.compareUrl; | 363 | + data['compare_url'] = entity.compareUrl; |
| 385 | - data['merges_url'] = entity.mergesUrl; | 364 | + data['merges_url'] = entity.mergesUrl; |
| 386 | - data['archive_url'] = entity.archiveUrl; | 365 | + data['archive_url'] = entity.archiveUrl; |
| 387 | - data['downloads_url'] = entity.downloadsUrl; | 366 | + data['downloads_url'] = entity.downloadsUrl; |
| 388 | - data['issues_url'] = entity.issuesUrl; | 367 | + data['issues_url'] = entity.issuesUrl; |
| 389 | - data['pulls_url'] = entity.pullsUrl; | 368 | + data['pulls_url'] = entity.pullsUrl; |
| 390 | - data['milestones_url'] = entity.milestonesUrl; | 369 | + data['milestones_url'] = entity.milestonesUrl; |
| 391 | - data['notifications_url'] = entity.notificationsUrl; | 370 | + data['notifications_url'] = entity.notificationsUrl; |
| 392 | - data['labels_url'] = entity.labelsUrl; | 371 | + data['labels_url'] = entity.labelsUrl; |
| 393 | - data['releases_url'] = entity.releasesUrl; | 372 | + data['releases_url'] = entity.releasesUrl; |
| 394 | - data['deployments_url'] = entity.deploymentsUrl; | 373 | + data['deployments_url'] = entity.deploymentsUrl; |
| 395 | - data['created_at'] = entity.createdAt; | 374 | + data['created_at'] = entity.createdAt; |
| 396 | - data['updated_at'] = entity.updatedAt; | 375 | + data['updated_at'] = entity.updatedAt; |
| 397 | - data['pushed_at'] = entity.pushedAt; | 376 | + data['pushed_at'] = entity.pushedAt; |
| 398 | - data['git_url'] = entity.gitUrl; | 377 | + data['git_url'] = entity.gitUrl; |
| 399 | - data['ssh_url'] = entity.sshUrl; | 378 | + data['ssh_url'] = entity.sshUrl; |
| 400 | - data['clone_url'] = entity.cloneUrl; | 379 | + data['clone_url'] = entity.cloneUrl; |
| 401 | - data['svn_url'] = entity.svnUrl; | 380 | + data['svn_url'] = entity.svnUrl; |
| 402 | - data['homepage'] = entity.homepage; | 381 | + data['homepage'] = entity.homepage; |
| 403 | - data['size'] = entity.size; | 382 | + data['size'] = entity.size; |
| 404 | - data['stargazers_count'] = entity.stargazersCount; | 383 | + data['stargazers_count'] = entity.stargazersCount; |
| 405 | - data['watchers_count'] = entity.watchersCount; | 384 | + data['watchers_count'] = entity.watchersCount; |
| 406 | - data['language'] = entity.language; | 385 | + data['language'] = entity.language; |
| 407 | - data['has_issues'] = entity.hasIssues; | 386 | + data['has_issues'] = entity.hasIssues; |
| 408 | - data['has_projects'] = entity.hasProjects; | 387 | + data['has_projects'] = entity.hasProjects; |
| 409 | - data['has_downloads'] = entity.hasDownloads; | 388 | + data['has_downloads'] = entity.hasDownloads; |
| 410 | - data['has_wiki'] = entity.hasWiki; | 389 | + data['has_wiki'] = entity.hasWiki; |
| 411 | - data['has_pages'] = entity.hasPages; | 390 | + data['has_pages'] = entity.hasPages; |
| 412 | - data['forks_count'] = entity.forksCount; | 391 | + data['forks_count'] = entity.forksCount; |
| 413 | - data['archived'] = entity.archived; | 392 | + data['archived'] = entity.archived; |
| 414 | - data['disabled'] = entity.disabled; | 393 | + data['disabled'] = entity.disabled; |
| 415 | - data['open_issues_count'] = entity.openIssuesCount; | 394 | + data['open_issues_count'] = entity.openIssuesCount; |
| 416 | - data['license'] = entity.license?.toJson(); | 395 | + data['license'] = entity.license?.toJson(); |
| 417 | - data['forks'] = entity.forks; | 396 | + data['forks'] = entity.forks; |
| 418 | - data['open_issues'] = entity.openIssues; | 397 | + data['open_issues'] = entity.openIssues; |
| 419 | - data['watchers'] = entity.watchers; | 398 | + data['watchers'] = entity.watchers; |
| 420 | - data['default_branch'] = entity.defaultBranch; | 399 | + data['default_branch'] = entity.defaultBranch; |
| 421 | - data['score'] = entity.score; | 400 | + data['score'] = entity.score; |
| 422 | - return data; | 401 | + return data; |
| 423 | } | 402 | } |
| 424 | 403 | ||
| 425 | SearchItemsOwner $SearchItemsOwnerFromJson(Map<String, dynamic> json) { | 404 | SearchItemsOwner $SearchItemsOwnerFromJson(Map<String, dynamic> json) { |
| 426 | - final SearchItemsOwner searchItemsOwner = SearchItemsOwner(); | 405 | + final SearchItemsOwner searchItemsOwner = SearchItemsOwner(); |
| 427 | - final String? login = jsonConvert.convert<String>(json['login']); | 406 | + final String? login = jsonConvert.convert<String>(json['login']); |
| 428 | - if (login != null) { | 407 | + if (login != null) { |
| 429 | - searchItemsOwner.login = login; | 408 | + searchItemsOwner.login = login; |
| 430 | - } | 409 | + } |
| 431 | - final int? id = jsonConvert.convert<int>(json['id']); | 410 | + final int? id = jsonConvert.convert<int>(json['id']); |
| 432 | - if (id != null) { | 411 | + if (id != null) { |
| 433 | - searchItemsOwner.id = id; | 412 | + searchItemsOwner.id = id; |
| 434 | - } | 413 | + } |
| 435 | - final String? nodeId = jsonConvert.convert<String>(json['node_id']); | 414 | + final String? nodeId = jsonConvert.convert<String>(json['node_id']); |
| 436 | - if (nodeId != null) { | 415 | + if (nodeId != null) { |
| 437 | - searchItemsOwner.nodeId = nodeId; | 416 | + searchItemsOwner.nodeId = nodeId; |
| 438 | - } | 417 | + } |
| 439 | - final String? avatarUrl = jsonConvert.convert<String>(json['avatar_url']); | 418 | + final String? avatarUrl = jsonConvert.convert<String>(json['avatar_url']); |
| 440 | - if (avatarUrl != null) { | 419 | + if (avatarUrl != null) { |
| 441 | - searchItemsOwner.avatarUrl = avatarUrl; | 420 | + searchItemsOwner.avatarUrl = avatarUrl; |
| 442 | - } | 421 | + } |
| 443 | - final String? gravatarId = jsonConvert.convert<String>(json['gravatar_id']); | 422 | + final String? gravatarId = jsonConvert.convert<String>(json['gravatar_id']); |
| 444 | - if (gravatarId != null) { | 423 | + if (gravatarId != null) { |
| 445 | - searchItemsOwner.gravatarId = gravatarId; | 424 | + searchItemsOwner.gravatarId = gravatarId; |
| 446 | - } | 425 | + } |
| 447 | - final String? url = jsonConvert.convert<String>(json['url']); | 426 | + final String? url = jsonConvert.convert<String>(json['url']); |
| 448 | - if (url != null) { | 427 | + if (url != null) { |
| 449 | - searchItemsOwner.url = url; | 428 | + searchItemsOwner.url = url; |
| 450 | - } | 429 | + } |
| 451 | - final String? htmlUrl = jsonConvert.convert<String>(json['html_url']); | 430 | + final String? htmlUrl = jsonConvert.convert<String>(json['html_url']); |
| 452 | - if (htmlUrl != null) { | 431 | + if (htmlUrl != null) { |
| 453 | - searchItemsOwner.htmlUrl = htmlUrl; | 432 | + searchItemsOwner.htmlUrl = htmlUrl; |
| 454 | - } | 433 | + } |
| 455 | - final String? followersUrl = | 434 | + final String? followersUrl = jsonConvert.convert<String>(json['followers_url']); |
| 456 | - jsonConvert.convert<String>(json['followers_url']); | 435 | + if (followersUrl != null) { |
| 457 | - if (followersUrl != null) { | 436 | + searchItemsOwner.followersUrl = followersUrl; |
| 458 | - searchItemsOwner.followersUrl = followersUrl; | 437 | + } |
| 459 | - } | 438 | + final String? followingUrl = jsonConvert.convert<String>(json['following_url']); |
| 460 | - final String? followingUrl = | 439 | + if (followingUrl != null) { |
| 461 | - jsonConvert.convert<String>(json['following_url']); | 440 | + searchItemsOwner.followingUrl = followingUrl; |
| 462 | - if (followingUrl != null) { | 441 | + } |
| 463 | - searchItemsOwner.followingUrl = followingUrl; | 442 | + final String? gistsUrl = jsonConvert.convert<String>(json['gists_url']); |
| 464 | - } | 443 | + if (gistsUrl != null) { |
| 465 | - final String? gistsUrl = jsonConvert.convert<String>(json['gists_url']); | 444 | + searchItemsOwner.gistsUrl = gistsUrl; |
| 466 | - if (gistsUrl != null) { | 445 | + } |
| 467 | - searchItemsOwner.gistsUrl = gistsUrl; | 446 | + final String? starredUrl = jsonConvert.convert<String>(json['starred_url']); |
| 468 | - } | 447 | + if (starredUrl != null) { |
| 469 | - final String? starredUrl = jsonConvert.convert<String>(json['starred_url']); | 448 | + searchItemsOwner.starredUrl = starredUrl; |
| 470 | - if (starredUrl != null) { | 449 | + } |
| 471 | - searchItemsOwner.starredUrl = starredUrl; | 450 | + final String? subscriptionsUrl = jsonConvert.convert<String>(json['subscriptions_url']); |
| 472 | - } | 451 | + if (subscriptionsUrl != null) { |
| 473 | - final String? subscriptionsUrl = | 452 | + searchItemsOwner.subscriptionsUrl = subscriptionsUrl; |
| 474 | - jsonConvert.convert<String>(json['subscriptions_url']); | 453 | + } |
| 475 | - if (subscriptionsUrl != null) { | 454 | + final String? organizationsUrl = jsonConvert.convert<String>(json['organizations_url']); |
| 476 | - searchItemsOwner.subscriptionsUrl = subscriptionsUrl; | 455 | + if (organizationsUrl != null) { |
| 477 | - } | 456 | + searchItemsOwner.organizationsUrl = organizationsUrl; |
| 478 | - final String? organizationsUrl = | 457 | + } |
| 479 | - jsonConvert.convert<String>(json['organizations_url']); | 458 | + final String? reposUrl = jsonConvert.convert<String>(json['repos_url']); |
| 480 | - if (organizationsUrl != null) { | 459 | + if (reposUrl != null) { |
| 481 | - searchItemsOwner.organizationsUrl = organizationsUrl; | 460 | + searchItemsOwner.reposUrl = reposUrl; |
| 482 | - } | 461 | + } |
| 483 | - final String? reposUrl = jsonConvert.convert<String>(json['repos_url']); | 462 | + final String? eventsUrl = jsonConvert.convert<String>(json['events_url']); |
| 484 | - if (reposUrl != null) { | 463 | + if (eventsUrl != null) { |
| 485 | - searchItemsOwner.reposUrl = reposUrl; | 464 | + searchItemsOwner.eventsUrl = eventsUrl; |
| 486 | - } | 465 | + } |
| 487 | - final String? eventsUrl = jsonConvert.convert<String>(json['events_url']); | 466 | + final String? receivedEventsUrl = jsonConvert.convert<String>(json['received_events_url']); |
| 488 | - if (eventsUrl != null) { | 467 | + if (receivedEventsUrl != null) { |
| 489 | - searchItemsOwner.eventsUrl = eventsUrl; | 468 | + searchItemsOwner.receivedEventsUrl = receivedEventsUrl; |
| 490 | - } | 469 | + } |
| 491 | - final String? receivedEventsUrl = | 470 | + final String? type = jsonConvert.convert<String>(json['type']); |
| 492 | - jsonConvert.convert<String>(json['received_events_url']); | 471 | + if (type != null) { |
| 493 | - if (receivedEventsUrl != null) { | 472 | + searchItemsOwner.type = type; |
| 494 | - searchItemsOwner.receivedEventsUrl = receivedEventsUrl; | 473 | + } |
| 495 | - } | 474 | + final bool? siteAdmin = jsonConvert.convert<bool>(json['site_admin']); |
| 496 | - final String? type = jsonConvert.convert<String>(json['type']); | 475 | + if (siteAdmin != null) { |
| 497 | - if (type != null) { | 476 | + searchItemsOwner.siteAdmin = siteAdmin; |
| 498 | - searchItemsOwner.type = type; | 477 | + } |
| 499 | - } | 478 | + return searchItemsOwner; |
| 500 | - final bool? siteAdmin = jsonConvert.convert<bool>(json['site_admin']); | ||
| 501 | - if (siteAdmin != null) { | ||
| 502 | - searchItemsOwner.siteAdmin = siteAdmin; | ||
| 503 | - } | ||
| 504 | - return searchItemsOwner; | ||
| 505 | } | 479 | } |
| 506 | 480 | ||
| 507 | Map<String, dynamic> $SearchItemsOwnerToJson(SearchItemsOwner entity) { | 481 | Map<String, dynamic> $SearchItemsOwnerToJson(SearchItemsOwner entity) { |
| 508 | - final Map<String, dynamic> data = <String, dynamic>{}; | 482 | + final Map<String, dynamic> data = <String, dynamic>{}; |
| 509 | - data['login'] = entity.login; | 483 | + data['login'] = entity.login; |
| 510 | - data['id'] = entity.id; | 484 | + data['id'] = entity.id; |
| 511 | - data['node_id'] = entity.nodeId; | 485 | + data['node_id'] = entity.nodeId; |
| 512 | - data['avatar_url'] = entity.avatarUrl; | 486 | + data['avatar_url'] = entity.avatarUrl; |
| 513 | - data['gravatar_id'] = entity.gravatarId; | 487 | + data['gravatar_id'] = entity.gravatarId; |
| 514 | - data['url'] = entity.url; | 488 | + data['url'] = entity.url; |
| 515 | - data['html_url'] = entity.htmlUrl; | 489 | + data['html_url'] = entity.htmlUrl; |
| 516 | - data['followers_url'] = entity.followersUrl; | 490 | + data['followers_url'] = entity.followersUrl; |
| 517 | - data['following_url'] = entity.followingUrl; | 491 | + data['following_url'] = entity.followingUrl; |
| 518 | - data['gists_url'] = entity.gistsUrl; | 492 | + data['gists_url'] = entity.gistsUrl; |
| 519 | - data['starred_url'] = entity.starredUrl; | 493 | + data['starred_url'] = entity.starredUrl; |
| 520 | - data['subscriptions_url'] = entity.subscriptionsUrl; | 494 | + data['subscriptions_url'] = entity.subscriptionsUrl; |
| 521 | - data['organizations_url'] = entity.organizationsUrl; | 495 | + data['organizations_url'] = entity.organizationsUrl; |
| 522 | - data['repos_url'] = entity.reposUrl; | 496 | + data['repos_url'] = entity.reposUrl; |
| 523 | - data['events_url'] = entity.eventsUrl; | 497 | + data['events_url'] = entity.eventsUrl; |
| 524 | - data['received_events_url'] = entity.receivedEventsUrl; | 498 | + data['received_events_url'] = entity.receivedEventsUrl; |
| 525 | - data['type'] = entity.type; | 499 | + data['type'] = entity.type; |
| 526 | - data['site_admin'] = entity.siteAdmin; | 500 | + data['site_admin'] = entity.siteAdmin; |
| 527 | - return data; | 501 | + return data; |
| 528 | } | 502 | } |
| 529 | 503 | ||
| 530 | SearchItemsLicense $SearchItemsLicenseFromJson(Map<String, dynamic> json) { | 504 | SearchItemsLicense $SearchItemsLicenseFromJson(Map<String, dynamic> json) { |
| 531 | - final SearchItemsLicense searchItemsLicense = SearchItemsLicense(); | 505 | + final SearchItemsLicense searchItemsLicense = SearchItemsLicense(); |
| 532 | - final String? key = jsonConvert.convert<String>(json['key']); | 506 | + final String? key = jsonConvert.convert<String>(json['key']); |
| 533 | - if (key != null) { | 507 | + if (key != null) { |
| 534 | - searchItemsLicense.key = key; | 508 | + searchItemsLicense.key = key; |
| 535 | - } | 509 | + } |
| 536 | - final String? name = jsonConvert.convert<String>(json['name']); | 510 | + final String? name = jsonConvert.convert<String>(json['name']); |
| 537 | - if (name != null) { | 511 | + if (name != null) { |
| 538 | - searchItemsLicense.name = name; | 512 | + searchItemsLicense.name = name; |
| 539 | - } | 513 | + } |
| 540 | - final String? spdxId = jsonConvert.convert<String>(json['spdx_id']); | 514 | + final String? spdxId = jsonConvert.convert<String>(json['spdx_id']); |
| 541 | - if (spdxId != null) { | 515 | + if (spdxId != null) { |
| 542 | - searchItemsLicense.spdxId = spdxId; | 516 | + searchItemsLicense.spdxId = spdxId; |
| 543 | - } | 517 | + } |
| 544 | - final String? url = jsonConvert.convert<String>(json['url']); | 518 | + final String? url = jsonConvert.convert<String>(json['url']); |
| 545 | - if (url != null) { | 519 | + if (url != null) { |
| 546 | - searchItemsLicense.url = url; | 520 | + searchItemsLicense.url = url; |
| 547 | - } | 521 | + } |
| 548 | - final String? nodeId = jsonConvert.convert<String>(json['node_id']); | 522 | + final String? nodeId = jsonConvert.convert<String>(json['node_id']); |
| 549 | - if (nodeId != null) { | 523 | + if (nodeId != null) { |
| 550 | - searchItemsLicense.nodeId = nodeId; | 524 | + searchItemsLicense.nodeId = nodeId; |
| 551 | - } | 525 | + } |
| 552 | - return searchItemsLicense; | 526 | + return searchItemsLicense; |
| 553 | } | 527 | } |
| 554 | 528 | ||
| 555 | Map<String, dynamic> $SearchItemsLicenseToJson(SearchItemsLicense entity) { | 529 | Map<String, dynamic> $SearchItemsLicenseToJson(SearchItemsLicense entity) { |
| 556 | - final Map<String, dynamic> data = <String, dynamic>{}; | 530 | + final Map<String, dynamic> data = <String, dynamic>{}; |
| 557 | - data['key'] = entity.key; | 531 | + data['key'] = entity.key; |
| 558 | - data['name'] = entity.name; | 532 | + data['name'] = entity.name; |
| 559 | - data['spdx_id'] = entity.spdxId; | 533 | + data['spdx_id'] = entity.spdxId; |
| 560 | - data['url'] = entity.url; | 534 | + data['url'] = entity.url; |
| 561 | - data['node_id'] = entity.nodeId; | 535 | + data['node_id'] = entity.nodeId; |
| 562 | - return data; | 536 | + return data; |
| 563 | -} | 537 | +} |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
lib/poem/models/lang_sort_entity.dart
0 → 100644
| 1 | +import 'dart:convert'; | ||
| 2 | +import 'package:one_poem/generated/json/base/json_field.dart'; | ||
| 3 | +import 'package:one_poem/generated/json/lang_sort_entity.g.dart'; | ||
| 4 | + | ||
| 5 | +@JsonSerializable() | ||
| 6 | +class LangSortEntity { | ||
| 7 | + | ||
| 8 | + String? id; | ||
| 9 | + String? name; | ||
| 10 | + | ||
| 11 | + LangSortEntity(); | ||
| 12 | + | ||
| 13 | + factory LangSortEntity.fromJson(Map<String, dynamic> json) => $LangSortEntityFromJson(json); | ||
| 14 | + | ||
| 15 | + Map<String, dynamic> toJson() => $LangSortEntityToJson(this); | ||
| 16 | + | ||
| 17 | + @override | ||
| 18 | + String toString() { | ||
| 19 | + return jsonEncode(this); | ||
| 20 | + } | ||
| 21 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | import 'package:flutter/cupertino.dart'; | 1 | import 'package:flutter/cupertino.dart'; |
| 2 | import 'package:flutter/material.dart'; | 2 | import 'package:flutter/material.dart'; |
| 3 | +import 'package:one_poem/poem/provider/lang_sort_provider.dart'; | ||
| 4 | +import 'package:one_poem/poem/widgets/lang_sort_bottom_sheet.dart'; | ||
| 3 | import 'package:one_poem/res/resources.dart'; | 5 | import 'package:one_poem/res/resources.dart'; |
| 4 | import 'package:one_poem/routers/fluro_navigator.dart'; | 6 | import 'package:one_poem/routers/fluro_navigator.dart'; |
| 5 | import 'package:one_poem/routers/routers.dart'; | 7 | import 'package:one_poem/routers/routers.dart'; |
| 8 | +import 'package:one_poem/widgets/click_item.dart'; | ||
| 6 | import 'package:one_poem/widgets/my_app_bar.dart'; | 9 | import 'package:one_poem/widgets/my_app_bar.dart'; |
| 7 | 10 | ||
| 8 | import 'package:one_poem/extension/int_extension.dart'; | 11 | import 'package:one_poem/extension/int_extension.dart'; |
| ... | @@ -19,6 +22,9 @@ class PoemPublish extends StatefulWidget { | ... | @@ -19,6 +22,9 @@ class PoemPublish extends StatefulWidget { |
| 19 | 22 | ||
| 20 | class _PoemPublishState extends State<PoemPublish> { | 23 | class _PoemPublishState extends State<PoemPublish> { |
| 21 | bool isPublishing = false; | 24 | bool isPublishing = false; |
| 25 | + String _langSortName = "普通话"; | ||
| 26 | + int _langSortId = 1; | ||
| 27 | + final LangSortProvider _provider = LangSortProvider(); | ||
| 22 | 28 | ||
| 23 | @override | 29 | @override |
| 24 | void initState() { | 30 | void initState() { |
| ... | @@ -28,6 +34,7 @@ class _PoemPublishState extends State<PoemPublish> { | ... | @@ -28,6 +34,7 @@ class _PoemPublishState extends State<PoemPublish> { |
| 28 | @override | 34 | @override |
| 29 | void dispose() { | 35 | void dispose() { |
| 30 | super.dispose(); | 36 | super.dispose(); |
| 37 | + _provider.dispose(); | ||
| 31 | } | 38 | } |
| 32 | 39 | ||
| 33 | @override | 40 | @override |
| ... | @@ -94,28 +101,42 @@ class _PoemPublishState extends State<PoemPublish> { | ... | @@ -94,28 +101,42 @@ class _PoemPublishState extends State<PoemPublish> { |
| 94 | ], | 101 | ], |
| 95 | ), | 102 | ), |
| 96 | ), | 103 | ), |
| 97 | - Container( | 104 | + InkWell( |
| 98 | - padding: EdgeInsets.all(10.px), | 105 | + onTap: () { |
| 99 | - alignment: Alignment.centerLeft, | 106 | + showModalBottomSheet<void>( |
| 100 | - width: double.infinity, | 107 | + context: context, |
| 101 | - height: 36.px, | 108 | + isScrollControlled: true, |
| 102 | - child: Wrap( | 109 | + builder: (BuildContext context) { |
| 103 | - children: [ | 110 | + return LangSortBottomSheet( |
| 104 | - Icon( | 111 | + provider: _provider, |
| 105 | - Icons.record_voice_over_outlined, | 112 | + onSelected: (id, name) { |
| 106 | - size: 15.px, | 113 | + setState(() { |
| 107 | - ), | 114 | + _langSortId = int.parse(id); |
| 108 | - Gaps.hGap5, | 115 | + _langSortName = name; |
| 109 | - const Text( | 116 | + }); |
| 110 | - "所用口音", | 117 | + }, |
| 111 | - style: TextStyle(color: Colors.black45), | 118 | + ); |
| 112 | - ), | 119 | + }, |
| 113 | - Gaps.hGap10, | 120 | + ); |
| 114 | - const Text( | 121 | + }, |
| 115 | - "普通话", | 122 | + child: Container( |
| 116 | - style: TextStyle(color: Colors.black45), | 123 | + padding: EdgeInsets.all(10.px), |
| 117 | - ), | 124 | + alignment: Alignment.centerLeft, |
| 118 | - ], | 125 | + width: double.infinity, |
| 126 | + height: 36.px, | ||
| 127 | + child: Wrap( | ||
| 128 | + children: [ | ||
| 129 | + Icon( | ||
| 130 | + Icons.record_voice_over_outlined, | ||
| 131 | + size: 15.px, | ||
| 132 | + ), | ||
| 133 | + Gaps.hGap5, | ||
| 134 | + Text( | ||
| 135 | + "所用口音 $_langSortName", | ||
| 136 | + style: const TextStyle(color: Colors.black45), | ||
| 137 | + ), | ||
| 138 | + ], | ||
| 139 | + ), | ||
| 119 | ), | 140 | ), |
| 120 | ), | 141 | ), |
| 121 | const Spacer(), | 142 | const Spacer(), | ... | ... |
lib/poem/provider/lang_sort_provider.dart
0 → 100644
| 1 | +import 'dart:convert'; | ||
| 2 | + | ||
| 3 | +import 'package:flutter/material.dart'; | ||
| 4 | +import 'package:flutter/services.dart'; | ||
| 5 | +import 'package:one_poem/generated/json/base/json_convert_content.dart'; | ||
| 6 | +import 'package:one_poem/poem/models/lang_sort_entity.dart'; | ||
| 7 | + | ||
| 8 | +class LangSortProvider extends ChangeNotifier { | ||
| 9 | + int _index = 0; | ||
| 10 | + int get index => _index; | ||
| 11 | + List<LangSortEntity> _mLangSort = []; | ||
| 12 | + | ||
| 13 | + /// 当前列表数据 | ||
| 14 | + List<LangSortEntity> _mList = []; | ||
| 15 | + List<LangSortEntity> get mList => _mList; | ||
| 16 | + | ||
| 17 | + /// 三级联动选择的position | ||
| 18 | + final List<int> _positions = [0]; | ||
| 19 | + List<int> get positions => _positions; | ||
| 20 | + | ||
| 21 | + void setIndex(int index) { | ||
| 22 | + _index = index; | ||
| 23 | + notifyListeners(); | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + void indexIncrement() { | ||
| 27 | + _index++; | ||
| 28 | + } | ||
| 29 | + | ||
| 30 | + void setList(int index) { | ||
| 31 | + switch (index) { | ||
| 32 | + case 0: | ||
| 33 | + _mList = _mLangSort; | ||
| 34 | + break; | ||
| 35 | + } | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + void initData() { | ||
| 39 | + if (_mList.isNotEmpty) { | ||
| 40 | + return; | ||
| 41 | + } | ||
| 42 | + rootBundle.loadString('assets/data/lang.json').then((String value) { | ||
| 43 | + _mLangSort = | ||
| 44 | + JsonConvert.fromJsonAsT<List<LangSortEntity>>(json.decode(value)) ?? | ||
| 45 | + []; | ||
| 46 | + _mList = _mLangSort; | ||
| 47 | + notifyListeners(); | ||
| 48 | + }); | ||
| 49 | + } | ||
| 50 | +} |
lib/poem/widgets/lang_sort_bottom_sheet.dart
0 → 100644
| 1 | +import 'package:flutter/material.dart'; | ||
| 2 | +import 'package:one_poem/poem/provider/lang_sort_provider.dart'; | ||
| 3 | +import 'package:one_poem/res/resources.dart'; | ||
| 4 | +import 'package:one_poem/routers/fluro_navigator.dart'; | ||
| 5 | +import 'package:provider/provider.dart'; | ||
| 6 | +import 'package:one_poem/util/screen_utils.dart'; | ||
| 7 | + | ||
| 8 | +class LangSortBottomSheet extends StatefulWidget { | ||
| 9 | + const LangSortBottomSheet({ | ||
| 10 | + Key? key, | ||
| 11 | + required this.provider, | ||
| 12 | + required this.onSelected, | ||
| 13 | + }) : super(key: key); | ||
| 14 | + | ||
| 15 | + final Function(String, String) onSelected; | ||
| 16 | + | ||
| 17 | + /// 临时状态 | ||
| 18 | + final LangSortProvider provider; | ||
| 19 | + | ||
| 20 | + @override | ||
| 21 | + LangSortBottomSheetState createState() => LangSortBottomSheetState(); | ||
| 22 | +} | ||
| 23 | + | ||
| 24 | +class LangSortBottomSheetState extends State<LangSortBottomSheet> | ||
| 25 | + with SingleTickerProviderStateMixin { | ||
| 26 | + final ScrollController _controller = ScrollController(); | ||
| 27 | + | ||
| 28 | + @override | ||
| 29 | + void initState() { | ||
| 30 | + super.initState(); | ||
| 31 | + WidgetsBinding.instance!.addPostFrameCallback((_) { | ||
| 32 | + widget.provider.initData(); | ||
| 33 | + }); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + @override | ||
| 37 | + void dispose() { | ||
| 38 | + _controller.dispose(); | ||
| 39 | + super.dispose(); | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + @override | ||
| 43 | + Widget build(BuildContext context) { | ||
| 44 | + return Material( | ||
| 45 | + child: SizedBox( | ||
| 46 | + height: context.height * 11.0 / 16.0, | ||
| 47 | + | ||
| 48 | + /// 为保留状态,选择ChangeNotifierProvider.value,销毁自己手动处理(见 goods_edit_page.dart :dispose()) | ||
| 49 | + child: ChangeNotifierProvider<LangSortProvider>.value( | ||
| 50 | + value: widget.provider, | ||
| 51 | + child: Consumer<LangSortProvider>( | ||
| 52 | + builder: (_, provider, child) { | ||
| 53 | + return Column( | ||
| 54 | + crossAxisAlignment: CrossAxisAlignment.start, | ||
| 55 | + children: <Widget>[ | ||
| 56 | + child!, | ||
| 57 | + Gaps.line, | ||
| 58 | + Expanded( | ||
| 59 | + child: ListView.builder( | ||
| 60 | + controller: _controller, | ||
| 61 | + itemExtent: 48.0, | ||
| 62 | + itemBuilder: (_, index) { | ||
| 63 | + return _buildItem(provider, index); | ||
| 64 | + }, | ||
| 65 | + itemCount: provider.mList.length, | ||
| 66 | + ), | ||
| 67 | + ) | ||
| 68 | + ], | ||
| 69 | + ); | ||
| 70 | + }, | ||
| 71 | + child: Stack( | ||
| 72 | + children: <Widget>[ | ||
| 73 | + Container( | ||
| 74 | + width: double.infinity, | ||
| 75 | + alignment: Alignment.center, | ||
| 76 | + padding: const EdgeInsets.symmetric(vertical: 16.0), | ||
| 77 | + child: const Text( | ||
| 78 | + '请选择口音', | ||
| 79 | + style: TextStyles.textBold16, | ||
| 80 | + ), | ||
| 81 | + ), | ||
| 82 | + Positioned( | ||
| 83 | + right: 16.0, | ||
| 84 | + top: 16.0, | ||
| 85 | + bottom: 16.0, | ||
| 86 | + child: InkWell( | ||
| 87 | + onTap: () => NavigatorUtils.goBack(context), | ||
| 88 | + child: const SizedBox( | ||
| 89 | + height: 16.0, | ||
| 90 | + width: 16.0, | ||
| 91 | + child: Icon(Icons.close), | ||
| 92 | + ), | ||
| 93 | + ), | ||
| 94 | + ) | ||
| 95 | + ], | ||
| 96 | + ), | ||
| 97 | + ), | ||
| 98 | + ), | ||
| 99 | + ), | ||
| 100 | + ); | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + Widget _buildItem(LangSortProvider provider, int index) { | ||
| 104 | + return InkWell( | ||
| 105 | + child: Container( | ||
| 106 | + padding: const EdgeInsets.symmetric(horizontal: 16.0), | ||
| 107 | + alignment: Alignment.centerLeft, | ||
| 108 | + child: Row( | ||
| 109 | + children: <Widget>[ | ||
| 110 | + Text( | ||
| 111 | + provider.mList[index].name!, | ||
| 112 | + style: const TextStyle( | ||
| 113 | + fontSize: Dimens.font_sp14, | ||
| 114 | + color: Colors.black45, | ||
| 115 | + ), | ||
| 116 | + ), | ||
| 117 | + ], | ||
| 118 | + ), | ||
| 119 | + ), | ||
| 120 | + onTap: () { | ||
| 121 | + widget.onSelected( | ||
| 122 | + provider.mList[index].id!, provider.mList[index].name!); | ||
| 123 | + NavigatorUtils.goBack(context); | ||
| 124 | + _controller.animateTo( | ||
| 125 | + 0.0, | ||
| 126 | + duration: const Duration(milliseconds: 100), | ||
| 127 | + curve: Curves.ease, | ||
| 128 | + ); | ||
| 129 | + }, | ||
| 130 | + ); | ||
| 131 | + } | ||
| 132 | +} |
-
Please register or login to post a comment