执行 Ruff 安全自动修复
This commit is contained in:
+14
-14
@@ -5,8 +5,8 @@
|
||||
来源:m-shop.yaoguo.com 的 jce/ShopFacade.js、api/orderui.ts、api/mall/PlayMallNewHome.ts
|
||||
"""
|
||||
|
||||
from typing import List, Dict, Optional
|
||||
from .taf_protocol import TafOutputStream, TafInputStream, TafStruct, TafType
|
||||
|
||||
from .taf_protocol import TafInputStream, TafOutputStream, TafStruct, TafType
|
||||
|
||||
|
||||
class OrderType:
|
||||
@@ -387,7 +387,7 @@ class GoodsPriceInfo(TafStruct):
|
||||
self.spuId: str = ""
|
||||
self.minPrice: int = 0
|
||||
self.maxPrice: int = 0
|
||||
self.skuMap: Dict[int, GoodsSkuItem] = {}
|
||||
self.skuMap: dict[int, GoodsSkuItem] = {}
|
||||
self.stock: int = 0
|
||||
self.buyLimit: int = 0
|
||||
self.price: int = 0
|
||||
@@ -500,7 +500,7 @@ class OrderListGoodsDetail(TafStruct):
|
||||
self.buyerUid: int = 0 # tag 18
|
||||
self.virtualType: int = 0 # tag 19
|
||||
self.quantity: int = 0 # tag 20
|
||||
self.shopInfo: Optional[OrderListShopInfo] = None # tag 21
|
||||
self.shopInfo: OrderListShopInfo | None = None # tag 21
|
||||
self.points: int = 0 # tag 23
|
||||
|
||||
def read_from(self, ins: TafInputStream):
|
||||
@@ -544,7 +544,7 @@ class OrderListItem(TafStruct):
|
||||
self.totalPrice: int = 0 # tag 12 分
|
||||
self.createTime: int = 0 # tag 14 毫秒时间戳
|
||||
self.payTime: int = 0 # tag 15 毫秒时间戳
|
||||
self.goodsDetail: Optional[OrderListGoodsDetail] = None # tag 16
|
||||
self.goodsDetail: OrderListGoodsDetail | None = None # tag 16
|
||||
|
||||
def read_from(self, ins: TafInputStream):
|
||||
self.bizOrderId = ins.read_string(0, default=self.bizOrderId)
|
||||
@@ -611,7 +611,7 @@ class QueryUserOrderListRsp(TafStruct):
|
||||
self.code: int = 0
|
||||
self.message: str = ""
|
||||
self.totalCount: int = 0
|
||||
self.orders: List[OrderListItem] = []
|
||||
self.orders: list[OrderListItem] = []
|
||||
|
||||
@staticmethod
|
||||
def _read_order_item(ins: TafInputStream, _tag: int):
|
||||
@@ -692,9 +692,9 @@ class CreateOrderPromotionParam(TafStruct):
|
||||
|
||||
class CreateOrderAccountParam(TafStruct):
|
||||
def __init__(self):
|
||||
self.payoutTypeList: List[int] = [] # tag 0 Vector<INT32>
|
||||
self.payoutTypeList: list[int] = [] # tag 0 Vector<INT32>
|
||||
self.payoutChargeAmount: int = 0 # tag 1
|
||||
self.cancelPayoutTypeList: List[int] = [] # tag 2
|
||||
self.cancelPayoutTypeList: list[int] = [] # tag 2
|
||||
self.recycleSupplierId: int = 0 # tag 3
|
||||
self.claimPrice: int = 0 # tag 4
|
||||
|
||||
@@ -739,20 +739,20 @@ class CreateOrderReqV5(TafStruct):
|
||||
self.gameId: str = "" # tag 8
|
||||
self.orderId: int = 0 # tag 9
|
||||
self.src: int = 0 # tag 10
|
||||
self.couponUserIds: List[int] = [] # tag 11 Vector<INT64>
|
||||
self.couponUserIds: list[int] = [] # tag 11 Vector<INT64>
|
||||
self.orderType: int = 0 # tag 12
|
||||
self.extraParam: Optional[CreateOrderExtraParam] = None # tag 13
|
||||
self.extraParam: CreateOrderExtraParam | None = None # tag 13
|
||||
self.scene: int = 0 # tag 14
|
||||
self.promotionItems: List = [] # tag 15 Vector<PromotionItem>
|
||||
self.promotionItems: list = [] # tag 15 Vector<PromotionItem>
|
||||
self.sourceId: str = "" # tag 16
|
||||
self.env: Dict[str, str] = {} # tag 17 Map<STRING,STRING>
|
||||
self.env: dict[str, str] = {} # tag 17 Map<STRING,STRING>
|
||||
self.orderScene: int = 0 # tag 18
|
||||
self.watchWord: str = "" # tag 19
|
||||
self.marketingChannel: str = "" # tag 20
|
||||
self.promotionParam: Optional[CreateOrderPromotionParam] = None # tag 21
|
||||
self.promotionParam: CreateOrderPromotionParam | None = None # tag 21
|
||||
self.externalTraceKey: str = "" # tag 22
|
||||
self.kefuUid: int = 0 # tag 23
|
||||
self.accountParam: Optional[CreateOrderAccountParam] = None # tag 24
|
||||
self.accountParam: CreateOrderAccountParam | None = None # tag 24
|
||||
self.parentOrderId: int = 0 # tag 25
|
||||
self.vendorAccountType: str = "" # tag 26
|
||||
self.vendorAccountVal: str = "" # tag 27
|
||||
|
||||
Reference in New Issue
Block a user