Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
bdd911dc
Commit
bdd911dc
authored
Nov 12, 2018
by
田超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new interface
parent
0dd1527b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
97 additions
and
0 deletions
+97
-0
TradeCommonService.java
...a/com/pcloud/common/trade/service/TradeCommonService.java
+30
-0
TargetIdAndTypeVO.java
...in/java/com/pcloud/common/trade/vo/TargetIdAndTypeVO.java
+67
-0
No files found.
pcloud-common/src/main/java/com/pcloud/common/trade/service/TradeCommonService.java
0 → 100644
View file @
bdd911dc
package
com
.
pcloud
.
common
.
trade
.
service
;
import
java.util.List
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
com.pcloud.common.dto.ResponseDto
;
import
com.pcloud.common.trade.vo.PayParamVO
;
import
com.pcloud.common.trade.vo.TargetIdAndTypeVO
;
/**
* 交易公用接口
* Created by ${user} on ${date}
*/
public
interface
TradeCommonService
{
@RequestMapping
(
value
=
"/getPayParam"
,
method
=
RequestMethod
.
POST
)
ResponseEntity
<
ResponseDto
<
List
<
PayParamVO
>>>
getPayParam
(
@RequestBody
TargetIdAndTypeVO
targetIdAndTypeVO
);
@RequestMapping
(
value
=
"getProductIdByAppId"
,
method
=
RequestMethod
.
GET
)
ResponseEntity
<
ResponseDto
<
Long
>>
getProductIdByAppId
(
@RequestParam
(
"appId"
)
Long
appId
);
}
pcloud-common/src/main/java/com/pcloud/common/trade/vo/TargetIdAndTypeVO.java
View file @
bdd911dc
...
...
@@ -23,6 +23,67 @@ public class TargetIdAndTypeVO implements Serializable {
private
int
paymentSource
;
private
Long
channelId
;
private
Long
appId
;
private
Long
officialAccountsId
;
private
Long
adviserId
;
private
Long
sceneId
;
private
String
ipAddress
;
public
String
getIpAddress
()
{
return
ipAddress
;
}
public
void
setIpAddress
(
String
ipAddress
)
{
this
.
ipAddress
=
ipAddress
;
}
public
Long
getAdviserId
()
{
return
adviserId
;
}
public
void
setAdviserId
(
Long
adviserId
)
{
this
.
adviserId
=
adviserId
;
}
public
Long
getSceneId
()
{
return
sceneId
;
}
public
void
setSceneId
(
Long
sceneId
)
{
this
.
sceneId
=
sceneId
;
}
public
Long
getOfficialAccountsId
()
{
return
officialAccountsId
;
}
public
void
setOfficialAccountsId
(
Long
officialAccountsId
)
{
this
.
officialAccountsId
=
officialAccountsId
;
}
public
Long
getChannelId
()
{
return
channelId
;
}
public
void
setChannelId
(
Long
channelId
)
{
this
.
channelId
=
channelId
;
}
public
Long
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
Long
appId
)
{
this
.
appId
=
appId
;
}
public
int
getPaymentSource
()
{
return
paymentSource
;
}
...
...
@@ -71,6 +132,12 @@ public class TargetIdAndTypeVO implements Serializable {
", wechatUserId="
+
wechatUserId
+
", buyOneBook="
+
buyOneBook
+
", paymentSource="
+
paymentSource
+
", channelId="
+
channelId
+
", appId="
+
appId
+
", officialAccountsId="
+
officialAccountsId
+
", adviserId="
+
adviserId
+
", sceneId="
+
sceneId
+
", ipAddress='"
+
ipAddress
+
'\''
+
'}'
;
}
}
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