models/formdb.py¶
models.formdb ¶
FormDB
FormDB ¶
Bases: DBBase
Form Collection
Source code in models/formdb.py
add_by_case ¶
Add data by case
Parameters:
Name | Type | Description | Default |
---|---|---|---|
case |
str
|
Case name. |
required |
pid |
str
|
Project id. |
required |
uid |
str
|
User id. |
required |
data |
dict
|
The data to insert / update. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Return the inserted / updated data. |
Source code in models/formdb.py
FormTrafficFeeMappingDB ¶
Bases: DBBase
Form traffic fee mapping Collection
Source code in models/formdb.py
save ¶
Save location / fee data
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pid |
str
|
Project id. |
required |
data |
dict
|
The data to insert / update. Format: |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Return the inserted / updated data. |