-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dongfo
committed
May 29, 2019
1 parent
874c0a9
commit 3665a32
Showing
53 changed files
with
1,847 additions
and
354 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
PayCenter/PaySharp.PayCenter/Controllers/AlipayManagerController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.EntityFrameworkCore; | ||
using PaySharp.DataStore.Application; | ||
using PaySharp.DataStore.Domain; | ||
|
||
namespace PaySharp.PayCenter.Controllers | ||
{ | ||
[Route("api/[controller]")] | ||
[ApiController] | ||
public class AlipayManagerController : Controller//ControllerBase | ||
{ | ||
private readonly IAlipayManageAppService _alipayAppService; | ||
public AlipayManagerController(IAlipayManageAppService alipayAppService) | ||
{ | ||
_alipayAppService = alipayAppService; | ||
} | ||
|
||
/// <summary> | ||
/// 查询支付宝账户列表 | ||
/// </summary> | ||
/// <returns></returns> | ||
[HttpGet("list")] | ||
public async Task<IEnumerable<AlipayAccountDto>> GetAccounts() | ||
{ | ||
return await _alipayAppService.GetListAsync(); | ||
} | ||
|
||
/// <summary> | ||
/// 新增支付宝账户 | ||
/// </summary> | ||
/// <param name="input"></param> | ||
/// <returns></returns> | ||
[HttpPost] | ||
public async Task<int> AddAccount(AddAlipayAccountDto input) | ||
{ | ||
return await _alipayAppService.AddAccountAsync(input); | ||
} | ||
|
||
/// <summary> | ||
/// 修改支付宝账户信息 | ||
/// </summary> | ||
/// <param name="input"></param> | ||
/// <returns></returns> | ||
[HttpPut] | ||
public async Task<int> Modify(ModifyAliPayAccountDto input) | ||
{ | ||
return await _alipayAppService.ModifyAsync(input); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
PayCenter/PaySharp.PayCenter/Controllers/QpayController.cs
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
PayCenter/PaySharp.PayCenter/Controllers/QpayManagerController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.AspNetCore.Mvc; | ||
using PaySharp.DataStore.Application; | ||
|
||
namespace PaySharp.PayCenter.Controllers | ||
{ | ||
[Route("api/[controller]")] | ||
[ApiController] | ||
public class QpayManagerController : ControllerBase | ||
{ | ||
private readonly IQPayAppService _qPayAppService; | ||
public QpayManagerController(IQPayAppService qPayAppService) | ||
{ | ||
_qPayAppService = qPayAppService; | ||
} | ||
|
||
/// <summary> | ||
/// 查询QQ钱包账户 | ||
/// </summary> | ||
/// <returns></returns> | ||
[HttpGet("list")] | ||
public async Task<IEnumerable<QPayAccountDto>> GetList() | ||
{ | ||
return await _qPayAppService.GetListAsync(); | ||
} | ||
|
||
/// <summary> | ||
/// 新增QQ钱包账户 | ||
/// </summary> | ||
/// <param name="input"></param> | ||
/// <returns></returns> | ||
[HttpPost] | ||
public async Task<int> Add(AddQpayAccountDto input) | ||
{ | ||
return await _qPayAppService.AddQPayAccountAsync(input); | ||
} | ||
|
||
/// <summary> | ||
/// 修改QQ钱包账户信息 | ||
/// </summary> | ||
/// <param name="input"></param> | ||
/// <returns></returns> | ||
[HttpPut] | ||
public async Task<int> Modify(ModifyQPayAccountDto input) | ||
{ | ||
return await _qPayAppService.ModifyQPayAccountAsync(input); | ||
} | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
PayCenter/PaySharp.PayCenter/Controllers/UnionpayController.cs
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
PayCenter/PaySharp.PayCenter/Controllers/UnionpayManagerController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.AspNetCore.Mvc; | ||
using PaySharp.DataStore.Application; | ||
|
||
namespace PaySharp.PayCenter.Controllers | ||
{ | ||
[Route("api/[controller]")] | ||
[ApiController] | ||
public class UnionpayManagerController : ControllerBase | ||
{ | ||
private readonly IUnionPayAppService _unionPayAppService; | ||
public UnionpayManagerController(IUnionPayAppService unionPayAppService) | ||
{ | ||
_unionPayAppService = unionPayAppService; | ||
} | ||
|
||
/// <summary> | ||
/// 查询银联支付账户 | ||
/// </summary> | ||
/// <returns></returns> | ||
[HttpGet("list")] | ||
public async Task<IEnumerable<UnionPayAccountDto>> GetList() | ||
{ | ||
return await _unionPayAppService.GetListAsync(); | ||
} | ||
|
||
/// <summary> | ||
/// 新增银联支付账户 | ||
/// </summary> | ||
/// <param name="input"></param> | ||
/// <returns></returns> | ||
[HttpPost] | ||
public async Task<int> Add(AddUnionPayAccountDto input) | ||
{ | ||
return await _unionPayAppService.AddQPayAccountAsync(input); | ||
} | ||
|
||
/// <summary> | ||
/// 修改银联支付账户信息 | ||
/// </summary> | ||
/// <param name="input"></param> | ||
/// <returns></returns> | ||
[HttpPut] | ||
public async Task<int> Modify(ModifyUnionPayAccountDto input) | ||
{ | ||
return await _unionPayAppService.ModifyQPayAccountAsync(input); | ||
} | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
PayCenter/PaySharp.PayCenter/Controllers/WechatpayController.cs
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
PayCenter/PaySharp.PayCenter/Controllers/WechatpayManagerController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.AspNetCore.Mvc; | ||
using PaySharp.DataStore.Application; | ||
|
||
namespace PaySharp.PayCenter.Controllers | ||
{ | ||
[Route("api/[controller]")] | ||
[ApiController] | ||
public class WechatpayManagerController : ControllerBase | ||
{ | ||
private readonly IWechatPayManageAppService _wechatPayAppService; | ||
public WechatpayManagerController(IWechatPayManageAppService wechatPayAppService) | ||
{ | ||
_wechatPayAppService = wechatPayAppService; | ||
} | ||
|
||
/// <summary> | ||
/// 查询微信支付账户列表 | ||
/// </summary> | ||
/// <returns></returns> | ||
[HttpGet("list")] | ||
public async Task<IEnumerable<WechatPayAccountDto>> GetList() | ||
{ | ||
return await _wechatPayAppService.GetListAsync(); | ||
} | ||
|
||
/// <summary> | ||
/// 新增微信支付账户 | ||
/// </summary> | ||
/// <param name="input"></param> | ||
/// <returns></returns> | ||
[HttpPost] | ||
public async Task<int> Add(AddWechatPayAccountDto input) | ||
{ | ||
return await _wechatPayAppService.AddAccountAsync(input); | ||
} | ||
|
||
/// <summary> | ||
/// 修改威胁你支付账户信息 | ||
/// </summary> | ||
/// <param name="input"></param> | ||
/// <returns></returns> | ||
[HttpPut] | ||
public async Task<int> Modify(ModifyWechatPayAccountDto input) | ||
{ | ||
return await _wechatPayAppService.ModifyAccountAsync(input); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.