Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
0764491c
Commit
0764491c
authored
Oct 23, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
29677785
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
UserCouponController.java
...com/xxfc/platform/activity/rest/UserCouponController.java
+16
-3
No files found.
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/rest/UserCouponController.java
View file @
0764491c
...
@@ -95,14 +95,14 @@ public class UserCouponController extends ActivityBaseController<UserCouponBiz>
...
@@ -95,14 +95,14 @@ public class UserCouponController extends ActivityBaseController<UserCouponBiz>
}
}
@ApiOperation
(
"领取优惠卷"
)
@ApiOperation
(
"领取优惠卷"
)
@RequestMapping
(
value
=
"
/coupon/led
"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"
ledCoupon/{couponId}
"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
led
(
)
{
public
ObjectRestResponse
led
Coupon
(
@PathVariable
Integer
couponId
)
{
AppUserDTO
userInfo
=
getUserInfo
();
AppUserDTO
userInfo
=
getUserInfo
();
Integer
userId
=
userInfo
.
getUserid
();
Integer
userId
=
userInfo
.
getUserid
();
if
(
userId
==
null
)
{
if
(
userId
==
null
)
{
return
ObjectRestResponse
.
createDefaultFail
();
return
ObjectRestResponse
.
createDefaultFail
();
}
}
return
joinBiz
.
receiveCoupn
(
userId
);
return
ObjectRestResponse
.
succ
(
baseBiz
.
userLedCoupon
(
userId
,
couponId
)
);
}
}
@RequestMapping
(
value
=
"/getCoupon"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getCoupon"
,
method
=
RequestMethod
.
GET
)
...
@@ -130,4 +130,17 @@ public class UserCouponController extends ActivityBaseController<UserCouponBiz>
...
@@ -130,4 +130,17 @@ public class UserCouponController extends ActivityBaseController<UserCouponBiz>
}
}
@ApiOperation
(
"领取优惠卷"
)
@RequestMapping
(
value
=
"/coupon/led"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
led
()
{
AppUserDTO
userInfo
=
getUserInfo
();
Integer
userId
=
userInfo
.
getUserid
();
if
(
userId
==
null
)
{
return
ObjectRestResponse
.
createDefaultFail
();
}
return
joinBiz
.
receiveCoupn
(
userId
);
}
}
}
\ No newline at end of file
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