Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas3-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas3-fe
Commits
f1f8a6eb
Commit
f1f8a6eb
authored
Dec 31, 2021
by
guxukai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/main'
parents
b31fd5c7
1126bdc6
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
680 additions
and
14 deletions
+680
-14
TODO.md
src/shared/models/TODO.md
+2
-2
ContractChainApproveStat.ts
src/shared/models/app-service/ContractChainApproveStat.ts
+1
-5
OrderExpirePage.ts
src/shared/models/order-service/OrderExpirePage.ts
+1
-2
OrderRefundPage.ts
src/shared/models/order-service/OrderRefundPage.ts
+21
-0
OrderStatistics.ts
src/shared/models/order-service/OrderStatistics.ts
+1
-5
Account.ts
src/shared/models/pay-service/Account.ts
+13
-0
BalanceAlarm.ts
src/shared/models/pay-service/BalanceAlarm.ts
+22
-0
CostBizTypes.ts
src/shared/models/pay-service/CostBizTypes.ts
+13
-0
CostTrans.ts
src/shared/models/pay-service/CostTrans.ts
+30
-0
CostTransSummary.ts
src/shared/models/pay-service/CostTransSummary.ts
+18
-0
Deposit.ts
src/shared/models/pay-service/Deposit.ts
+19
-0
Enterprise.ts
src/shared/models/pay-service/Enterprise.ts
+59
-0
EnterprisePage.ts
src/shared/models/pay-service/EnterprisePage.ts
+20
-0
IncomeTransfer.ts
src/shared/models/pay-service/IncomeTransfer.ts
+19
-0
Invoice.ts
src/shared/models/pay-service/Invoice.ts
+54
-0
InvoiceComplate.ts
src/shared/models/pay-service/InvoiceComplate.ts
+18
-0
InvoiceCount.ts
src/shared/models/pay-service/InvoiceCount.ts
+13
-0
InvoiceDetail.ts
src/shared/models/pay-service/InvoiceDetail.ts
+17
-0
InvoiceOrder.ts
src/shared/models/pay-service/InvoiceOrder.ts
+19
-0
InvoiceOrderAmount.ts
src/shared/models/pay-service/InvoiceOrderAmount.ts
+19
-0
InvoicePage.ts
src/shared/models/pay-service/InvoicePage.ts
+29
-0
OrgAccountToPersonal.ts
src/shared/models/pay-service/OrgAccountToPersonal.ts
+13
-0
Pay.ts
src/shared/models/pay-service/Pay.ts
+20
-0
Receipt.ts
src/shared/models/pay-service/Receipt.ts
+54
-0
ReceiptDefault.ts
src/shared/models/pay-service/ReceiptDefault.ts
+19
-0
ReceiptPage.ts
src/shared/models/pay-service/ReceiptPage.ts
+20
-0
Transfer.ts
src/shared/models/pay-service/Transfer.ts
+22
-0
HelpContent.ts
src/shared/models/website-service/HelpContent.ts
+46
-0
HelpImport.ts
src/shared/models/website-service/HelpImport.ts
+19
-0
HelpMenu.ts
src/shared/models/website-service/HelpMenu.ts
+39
-0
HelpOrder.ts
src/shared/models/website-service/HelpOrder.ts
+20
-0
No files found.
src/shared/models/TODO.md
View file @
f1f8a6eb
...
...
@@ -9,6 +9,6 @@
-
[
x
]
logger-service - gxk
-
[
x
]
monitor-service - gxk
-
[
x
]
order-service - jqy
-
[
]
pay-service - jqy
-
[
x
]
pay-service - jqy
-
[
x
]
user-service - zk
-
[
]
website-service - jqy
-
[
x
]
website-service - jqy
src/shared/models/app-service/ContractChainApproveStat.ts
View file @
f1f8a6eb
...
...
@@ -6,12 +6,8 @@ import { Model } from '@/shared/models/Model'
export
class
ContractChainApproveStat
extends
Model
<
ContractChainApproveStat
>
{
/**
* 统计用户发布应用和部署应用(联盟控制台)
* @param payload
*/
static
async
get
(
payload
:
ContractChainApproveStatGetReq
)
{
static
async
get
()
{
return
await
api
.
get
(
'/services/app-service/contract/chain/approve/stat'
)
}
}
@
Serializable
()
export
class
ContractChainApproveStatGetReq
extends
Model
<
ContractChainApproveStatGetReq
>
{}
src/shared/models/order-service/OrderExpirePage.ts
View file @
f1f8a6eb
...
...
@@ -4,7 +4,6 @@ import { Pagination } from '@shared/models/Pagination'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
Order
}
from
'@shared/models/order-service/Order'
import
{
OrderPagePostReq
}
from
'@shared/models/order-service/OrderPage'
@
Serializable
()
export
class
OrderExpirePage
extends
Pagination
<
Order
>
{
...
...
@@ -20,4 +19,4 @@ export class OrderExpirePage extends Pagination<Order> {
}
@
Serializable
()
export
class
OrderExpirePagePostReq
extends
PaginationParams
<
OrderPagePostReq
>
{}
export
class
OrderExpirePagePostReq
extends
PaginationParams
<
Order
Expire
PagePostReq
>
{}
src/shared/models/order-service/OrderRefundPage.ts
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
Pagination
}
from
'@shared/models/Pagination'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
OrderRefund
}
from
'@shared/models/order-service/OrderRefund'
@
Serializable
()
export
class
OrderRefundPage
extends
Pagination
<
OrderRefund
>
{
@
JsonProperty
({
type
:
OrderRefund
})
data
:
OrderRefund
[]
/**
* 分页查询订单退款表信息
* @param payload
*/
static
async
post
(
payload
:
OrderRefundPagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
OrderRefundPage
>>
(
'/services/order-service/order/refund/page'
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
OrderRefundPagePostReq
extends
PaginationParams
<
OrderRefundPagePostReq
>
{}
src/shared/models/order-service/OrderStatistics.ts
View file @
f1f8a6eb
...
...
@@ -6,12 +6,8 @@ import { Model } from '@shared/models/Model'
export
class
OrderStatistics
extends
Model
<
OrderStatistics
>
{
/**
* 统计未支付和续期的订单数量
* @param payload
*/
static
async
get
(
payload
:
OrderStatisticsGetReq
)
{
static
async
get
()
{
return
await
api
.
get
(
'/services/order-service/order/statistics'
)
}
}
@
Serializable
()
export
class
OrderStatisticsGetReq
extends
Model
<
OrderStatisticsGetReq
>
{}
src/shared/models/pay-service/Account.ts
0 → 100644
View file @
f1f8a6eb
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
Account
extends
Model
<
Account
>
{
/**
* 获取当前资金账户
*/
static
async
get
()
{
return
await
api
.
get
(
'/services/pay-service/account'
)
}
}
src/shared/models/pay-service/BalanceAlarm.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
BalanceAlarm
extends
Model
<
BalanceAlarm
>
{
/**
* 设置余额预警
* @param payload
*/
static
async
put
(
payload
:
BalanceAlarmPutReq
)
{
return
await
api
.
put
(
'/services/pay-service/balance-alarm'
)
}
}
@
Serializable
()
export
class
BalanceAlarmPutReq
extends
Model
<
BalanceAlarmPutReq
>
{
//金额
@
JsonProperty
()
amount
:
object
//业务单号
@
JsonProperty
()
outBizNo
:
object
}
src/shared/models/pay-service/CostBizTypes.ts
0 → 100644
View file @
f1f8a6eb
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
CostBizTypes
extends
Model
<
CostBizTypes
>
{
/**
* 交易类型
*/
static
async
get
()
{
return
await
api
.
get
(
'/services/pay-service/cost/biz-types'
)
}
}
src/shared/models/pay-service/CostTrans.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
CostTrans
extends
Model
<
CostTrans
>
{
@
JsonProperty
()
accountId
:
number
//开始时间
@
JsonProperty
()
beginDate
:
number
//业务类型,可用值:CHARGE,INCOME,ORDER,POST_PAYMENT,REFUND,RENEWAL,TRANSFER
@
JsonProperty
()
bizType
:
string
//资金流向,可用值:IN,OUT
@
JsonProperty
()
direction
:
string
//结束时间
@
JsonProperty
()
endDate
:
number
@
JsonProperty
()
isSuperAdmin
:
boolean
@
JsonProperty
()
pageIndex
:
number
@
JsonProperty
()
pageSize
:
number
/**
* 交易明细
* @param payload
*/
static
async
get
(
payload
:
CostTransGetReq
)
{
return
await
api
.
get
(
'/services/pay-service/cost/trans'
)
}
}
@
Serializable
()
export
class
CostTransGetReq
extends
Model
<
CostTransGetReq
>
{}
src/shared/models/pay-service/CostTransSummary.ts
0 → 100644
View file @
f1f8a6eb
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
import
{
CostTrans
}
from
'@shared/models/pay-service/CostTrans'
@
Serializable
()
export
class
CostTransSummary
extends
Model
<
CostTransSummary
>
{
/**
* 交易汇总
* @param payload
*/
static
async
get
(
payload
:
CostTransSummaryGetReq
)
{
return
await
api
.
get
(
'/services/pay-service/cost/trans/summary'
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
CostTransSummaryGetReq
extends
CostTrans
{}
src/shared/models/pay-service/Deposit.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
Deposit
extends
Model
<
Deposit
>
{
/**
* 充值订单
* @param payload
*/
static
async
get
(
payload
:
DepositGetReq
)
{
return
await
api
.
get
(
'/services/pay-service/deposit'
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
DepositGetReq
extends
Model
<
DepositGetReq
>
{
@
JsonProperty
()
amount
:
string
}
src/shared/models/pay-service/Enterprise.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
Enterprise
extends
Model
<
Enterprise
>
{
//银行账号
@
JsonProperty
()
bankCode
:
string
// 开户银行
@
JsonProperty
()
bankName
:
string
// 发票类型:0-增值税普通发票 1-增值税专用发票
@
JsonProperty
()
billType
:
number
// 新建时间
@
JsonProperty
()
createTime
:
number
// 创建用户ID
@
JsonProperty
()
createUserId
:
string
// 发票抬头
@
JsonProperty
()
enterName
:
string
// 发票抬头类型:0-企业 1-个人
@
JsonProperty
()
enterType
:
number
// 统一社会信用代码
@
JsonProperty
()
enterpriseCode
:
string
@
JsonProperty
()
id
:
number
// 注册地址
@
JsonProperty
()
regAddr
:
string
// 注册电话
@
JsonProperty
()
regPhone
:
string
/**
* 新增
* @param payload
*/
static
async
post
(
payload
:
EnterprisePostReq
)
{
return
await
api
.
post
(
'/services/pay-service/enterprise'
,
{
data
:
payload
})
}
/**
* 修改
* @param payload
*/
static
async
put
(
payload
:
EnterprisePutReq
)
{
return
await
api
.
put
(
'/services/pay-service/enterprise'
,
{
data
:
payload
})
}
/**
* 删除
* @param payload
*/
static
async
delete
(
payload
:
EnterpriseDeleteReq
)
{
return
await
api
.
delete
(
`/services/pay-service/enterprise/
${
payload
.
id
}
`
)
}
}
@
Serializable
()
export
class
EnterprisePostReq
extends
Enterprise
{}
@
Serializable
()
export
class
EnterprisePutReq
extends
Enterprise
{}
@
Serializable
()
export
class
EnterpriseDeleteReq
extends
Model
<
EnterpriseDeleteReq
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/pay-service/EnterprisePage.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
Pagination
}
from
'@shared/models/Pagination'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
Enterprise
}
from
'@shared/models/pay-service/Enterprise'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
@
Serializable
()
export
class
EnterprisePage
extends
Pagination
<
Enterprise
>
{
@
JsonProperty
({
type
:
Enterprise
})
data
:
Enterprise
[]
/**
* 分页列表
* @param payload
*/
static
async
post
(
payload
:
EnterprisePagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
EnterprisePage
>>
(
'/services/pay-service/enterprise/page'
,
{
data
:
payload
})
}
}
export
class
EnterprisePagePostReq
extends
PaginationParams
<
EnterprisePagePostReq
>
{}
src/shared/models/pay-service/IncomeTransfer.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
IncomeTransfer
extends
Model
<
IncomeTransfer
>
{
/**
* 奖利账户转资金账户
* @param payload
*/
static
async
put
(
payload
:
IncomeTransferPutReq
)
{
return
await
api
.
put
(
'/services/pay-service/income-transfer'
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
IncomeTransferPutReq
extends
Model
<
IncomeTransferPutReq
>
{
@
JsonProperty
()
amount
:
number
}
src/shared/models/pay-service/Invoice.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
import
{
InvoiceDetail
}
from
'@shared/models/pay-service/InvoiceDetail'
import
{
Enterprise
}
from
'@shared/models/pay-service/Enterprise'
import
{
Receipt
}
from
'@shared/models/pay-service/Receipt'
@
Serializable
()
export
class
Invoice
extends
Model
<
Invoice
>
{
//发票金额
@
JsonProperty
()
amount
:
number
//新建时间
@
JsonProperty
()
createTime
:
number
//创建用户ID
@
JsonProperty
()
createUserId
:
string
//details
@
JsonProperty
({
type
:
InvoiceDetail
})
details
:
InvoiceDetail
[]
// 发票信息
@
JsonProperty
()
enterpriseId
:
number
@
JsonProperty
()
enterpriseInfo
:
{
[
key
:
string
]:
Enterprise
}
@
JsonProperty
()
id
:
number
//开票方式: 0-按订单 1-按账期
@
JsonProperty
()
invoiceMode
:
number
//发票类型: 0-纸质发票
@
JsonProperty
()
invoiceType
:
number
@
JsonProperty
()
postingAddress
:
{
[
key
:
string
]:
Receipt
}
//收件人信息
@
JsonProperty
()
postingAddressId
:
number
//发票状态: 0-待开票 1-已开票
@
JsonProperty
()
status
:
number
/**
* 新增
* @param payload
*/
static
async
post
(
payload
:
InvoicePostReq
)
{
return
await
api
.
post
(
'/services/pay-service/invoice'
,
{
data
:
payload
})
}
/**
* 根据模块Id获取信息
* @param payload
*/
static
async
get
(
payload
:
InvoiceGetReq
)
{
return
await
api
.
get
(
`/services/pay-service/invoice/
${
payload
.
id
}
`
)
}
}
@
Serializable
()
export
class
InvoicePostReq
extends
Invoice
{}
@
Serializable
()
export
class
InvoiceGetReq
extends
Model
<
InvoiceGetReq
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/pay-service/InvoiceComplate.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
InvoiceComplate
extends
Model
<
InvoiceComplate
>
{
/**
* 开票完成
* @param payload
*/
static
async
put
(
payload
:
InvoiceComplatePutReq
)
{
return
await
api
.
put
(
'/services/pay-service/invoice/complate'
,
{
data
:
payload
})
}
}
export
class
InvoiceComplatePutReq
extends
Model
<
InvoiceComplatePutReq
>
{
@
JsonProperty
()
params
:
string
}
src/shared/models/pay-service/InvoiceCount.ts
0 → 100644
View file @
f1f8a6eb
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
InvoiceCount
extends
Model
<
InvoiceCount
>
{
/**
* 待开发票数
*/
static
async
get
()
{
return
await
api
.
get
(
'/services/pay-service/invoice/count'
)
}
}
src/shared/models/pay-service/InvoiceDetail.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
@
Serializable
()
export
class
InvoiceDetail
extends
Model
<
InvoiceDetail
>
{
//订单时间
@
JsonProperty
()
createTime
:
number
// 明细类型:0- 订单 1-账期
@
JsonProperty
()
detailType
:
number
@
JsonProperty
()
id
:
number
// 开票金额
@
JsonProperty
()
invoiceAmount
:
number
// 发票id
@
JsonProperty
()
invoiceId
:
number
// 来源Id(订单id)
@
JsonProperty
()
refrenceId
:
number
}
src/shared/models/pay-service/InvoiceOrder.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
InvoiceOrder
extends
Model
<
InvoiceOrder
>
{
/**
* 可开票订单列表
* @param payload
*/
static
async
get
(
payload
:
InvoiceOrderGetReq
)
{
return
await
api
.
get
(
'/services/pay-service/invoice/order'
,
{
data
:
payload
})
}
}
export
class
InvoiceOrderGetReq
extends
Model
<
InvoiceOrderGetReq
>
{
@
JsonProperty
()
beginDate
:
number
@
JsonProperty
()
endDate
:
number
}
src/shared/models/pay-service/InvoiceOrderAmount.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
InvoiceOrderAmount
extends
Model
<
InvoiceOrderAmount
>
{
/**
* 可开票订单金额
* @param payload
*/
static
async
get
(
payload
:
InvoiceOrderAmountGetReq
)
{
return
await
api
.
get
(
'/services/pay-service/invoice/order-amount'
,
{
data
:
payload
})
}
}
export
class
InvoiceOrderAmountGetReq
extends
Model
<
InvoiceOrderAmountGetReq
>
{
@
JsonProperty
()
beginDate
:
number
@
JsonProperty
()
endDate
:
number
}
src/shared/models/pay-service/InvoicePage.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
import
{
Invoice
}
from
'@shared/models/pay-service/Invoice'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
Pagination
}
from
'@shared/models/Pagination'
@
Serializable
()
export
class
InvoicePage
extends
Pagination
<
InvoicePage
>
{
@
JsonProperty
({
type
:
Invoice
})
data
:
Invoice
[]
/**
* 分页列表
* @param payload
*/
static
async
post
(
payload
:
InvoicePagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
InvoicePage
>>
(
'/services/pay-service/invoice/page'
,
{
data
:
payload
})
}
}
export
class
InvoicePagePostReq
extends
Model
<
InvoicePagePostReq
>
{
@
JsonProperty
()
adminRule
:
boolean
@
JsonProperty
()
beginDate
:
number
@
JsonProperty
()
endDate
:
number
@
JsonProperty
()
orderNo
:
string
@
JsonProperty
()
status
:
number
@
JsonProperty
()
userId
:
string
@
JsonProperty
()
pageIndex
:
number
@
JsonProperty
()
pageSize
:
number
}
src/shared/models/pay-service/OrgAccountToPersonal.ts
0 → 100644
View file @
f1f8a6eb
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
OrgAccountToPersonal
extends
Model
<
OrgAccountToPersonal
>
{
/**
* 企业资金账户转个人账户
*/
static
async
put
()
{
return
await
api
.
put
(
'/services/pay-service/org-account-to-personal'
)
}
}
src/shared/models/pay-service/Pay.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
Pay
extends
Model
<
Pay
>
{
/**
* 支付
* @param payload
*/
static
async
get
(
payload
:
PayGetReq
)
{
return
await
api
.
get
(
'/services/pay-service/pay'
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
PayGetReq
extends
Model
<
PayGetReq
>
{
@
JsonProperty
()
orderNo
:
number
@
JsonProperty
()
payType
:
string
}
src/shared/models/pay-service/Receipt.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
Receipt
extends
Model
<
Receipt
>
{
//详细地址
@
JsonProperty
()
address
:
string
//新建时间
@
JsonProperty
()
createTime
:
number
//创建用户ID
@
JsonProperty
()
createUserId
:
string
@
JsonProperty
()
id
:
number
//是否是默认地址
@
JsonProperty
()
isDefault
:
boolean
// 手机号
@
JsonProperty
()
mobile
:
string
// 收件人姓名
@
JsonProperty
()
name
:
string
// 邮政编码
@
JsonProperty
()
zipCode
:
string
/**
* 新增
* @param payload
*/
static
async
post
(
payload
:
ReceiptPostReq
)
{
return
await
api
.
get
(
'/services/pay-service/receipt'
,
{
data
:
payload
})
}
/**
* 修改
* @param payload
*/
static
async
put
(
payload
:
ReceiptPutReq
)
{
return
await
api
.
put
(
'/services/pay-service/receipt'
,
{
data
:
payload
})
}
/**
* 修改
* @param payload
*/
static
async
delete
(
payload
:
ReceiptDeleteReq
)
{
return
await
api
.
delete
(
`/services/pay-service/receipt/
${
payload
.
id
}
`
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
ReceiptPostReq
extends
Receipt
{}
@
Serializable
()
export
class
ReceiptPutReq
extends
Receipt
{}
@
Serializable
()
export
class
ReceiptDeleteReq
extends
Model
<
ReceiptDeleteReq
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/pay-service/ReceiptDefault.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
ReceiptDefault
extends
Model
<
ReceiptDefault
>
{
/**
* 设为默认地址
* @param payload
*/
static
async
put
(
payload
:
ReceiptDefaultPutReq
)
{
return
await
api
.
put
(
`/services/pay-service/receipt/default/
${
payload
.
id
}
`
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
ReceiptDefaultPutReq
extends
Model
<
ReceiptDefaultPutReq
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/pay-service/ReceiptPage.ts
0 → 100644
View file @
f1f8a6eb
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
Pagination
}
from
'@shared/models/Pagination'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Receipt
}
from
'@shared/models/pay-service/Receipt'
@
Serializable
()
export
class
ReceiptPage
extends
Pagination
<
Receipt
>
{
@
JsonProperty
({
type
:
Receipt
})
data
:
Receipt
[]
/**
* 分页列表
* @param payload
*/
static
async
post
(
payload
:
ReceiptPagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
ReceiptPage
>>
(
'/services/pay-service/enterprise/page'
,
{
data
:
payload
})
}
}
export
class
ReceiptPagePostReq
extends
PaginationParams
<
ReceiptPagePostReq
>
{}
src/shared/models/pay-service/Transfer.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
Transfer
extends
Model
<
Transfer
>
{
/**
* 转账
* @param payload
*/
static
async
put
(
payload
:
TransferPutReq
)
{
return
await
api
.
put
(
'/services/pay-service/transfer'
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
TransferPutReq
extends
Model
<
TransferPutReq
>
{
@
JsonProperty
()
balance
:
object
@
JsonProperty
()
inAccount
:
object
@
JsonProperty
()
phone
:
object
@
JsonProperty
()
verificode
:
object
}
src/shared/models/website-service/HelpContent.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
HelpContent
extends
Model
<
HelpContent
>
{
//正文内容
@
JsonProperty
()
content
:
string
//创建时间
@
JsonProperty
()
createTime
:
number
//菜单名称
@
JsonProperty
()
id
:
number
// 显示序号
@
JsonProperty
()
name
:
string
// 上级id
@
JsonProperty
()
orderNum
:
number
// 类型:0:一级菜单 1:二级菜单
@
JsonProperty
()
parentId
:
number
// 用户id
@
JsonProperty
()
type
:
string
// 更新时间
@
JsonProperty
()
uid
:
number
/**
* 返回菜单内容
* @param payload
*/
static
async
get
(
payload
:
HelpContentGetReq
)
{
return
await
api
.
get
(
'/services/website-service/help/content'
,
{
data
:
payload
})
}
/**
* 编辑菜单内容
* @param payload
*/
static
async
put
(
payload
:
HelpContentPutReq
)
{
return
await
api
.
put
(
'/services/website-service/help/content'
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
HelpContentGetReq
extends
Model
<
HelpContentGetReq
>
{
@
JsonProperty
()
id
:
number
}
@
Serializable
()
export
class
HelpContentPutReq
extends
HelpContent
{}
src/shared/models/website-service/HelpImport.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
HelpImport
extends
Model
<
HelpImport
>
{
/**
* 导入
* @param payload
*/
static
async
post
(
payload
:
HelpImportPostReq
)
{
return
await
api
.
post
(
'/services/website-service/help/import'
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
HelpImportPostReq
extends
Model
<
HelpImportPostReq
>
{
@
JsonProperty
()
file
:
File
}
src/shared/models/website-service/HelpMenu.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
import
{
HelpContent
}
from
'@shared/models/website-service/HelpContent'
@
Serializable
()
export
class
HelpMenu
extends
Model
<
HelpMenu
>
{
/**
* 查询所有菜单
*/
static
async
get
()
{
return
await
api
.
get
(
'/services/website-service/help/menu'
)
}
/**
* 添加菜单
* @param payload
*/
static
async
post
(
payload
:
HelpMenuPostMenu
)
{
return
await
api
.
post
(
'/services/website-service/help/menu'
,
{
data
:
payload
})
}
/**
* 删除菜单
* @param payload
*/
static
async
delete
(
payload
:
HelpMenuDeleteMenu
)
{
return
await
api
.
delete
(
'/services/website-service/help/menu'
,
{
data
:
payload
})
}
}
@
Serializable
()
export
class
HelpMenuPostMenu
extends
HelpContent
{
@
JsonProperty
()
updateTime
:
number
}
@
Serializable
()
export
class
HelpMenuDeleteMenu
extends
Model
<
HelpMenuDeleteMenu
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/website-service/HelpOrder.ts
0 → 100644
View file @
f1f8a6eb
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
export
class
HelpOrder
extends
Model
<
HelpOrder
>
{
/**
* 改变排序
* @param payload
*/
static
async
put
(
payload
:
HelpOrderPutReq
)
{
return
await
api
.
put
(
'/services/website-service/help/order'
)
}
}
export
class
HelpOrderPutReq
extends
Model
<
HelpOrderPutReq
>
{
//方向:-1:up;1:down
@
JsonProperty
()
direct
:
number
@
JsonProperty
()
id
:
number
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment