|
|
@@ -16,7 +16,9 @@ import com.zsElectric.boot.business.service.CouponService;
|
|
|
import com.zsElectric.boot.business.service.CouponTemplateService;
|
|
|
import com.zsElectric.boot.business.service.UserFeedbackService;
|
|
|
import com.zsElectric.boot.business.service.UserInfoService;
|
|
|
+import com.zsElectric.boot.common.annotation.Log;
|
|
|
import com.zsElectric.boot.common.constant.SystemConstants;
|
|
|
+import com.zsElectric.boot.common.enums.LogModuleEnum;
|
|
|
import com.zsElectric.boot.core.web.Result;
|
|
|
import com.zsElectric.boot.security.util.SecurityUtils;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
@@ -50,6 +52,7 @@ public class AppletUserController {
|
|
|
|
|
|
@Operation(summary = "用户绑定企业")
|
|
|
@PostMapping("/userBinding/{userId}/{firmId}")
|
|
|
+ @Log(value = "用户绑定企业", module = LogModuleEnum.APP_OTHER)
|
|
|
public Result<Boolean> userBinding(@PathVariable("userId") Long userId, @PathVariable("firmId") Long firmId) {
|
|
|
Boolean result = userInfoService.userBinding(userId, firmId);
|
|
|
return Result.judge(result);
|
|
|
@@ -57,6 +60,7 @@ public class AppletUserController {
|
|
|
|
|
|
@Operation(summary = "小程序用户反馈")
|
|
|
@PostMapping("/addUserFeedback")
|
|
|
+ @Log(value = "小程序用户反馈", module = LogModuleEnum.APP_OTHER)
|
|
|
public Result<Void> addUserFeedback(@RequestBody @Valid AppFeedbackForm formData ) {
|
|
|
UserFeedbackForm userFeedbackForm = new UserFeedbackForm();
|
|
|
userFeedbackForm.setType(formData.getType());
|
|
|
@@ -70,6 +74,7 @@ public class AppletUserController {
|
|
|
|
|
|
@Operation(summary = "用户反馈答复")
|
|
|
@GetMapping("/myFeedback")
|
|
|
+ @Log(value = "用户反馈答复", module = LogModuleEnum.OTHER)
|
|
|
public Result<List<UserFeedback>> addUserFeedback() {
|
|
|
List<UserFeedback> list = userFeedbackService.list(Wrappers.<UserFeedback>lambdaQuery().eq(UserFeedback::getUserId, SecurityUtils.getUserId()));
|
|
|
return Result.success(list);
|
|
|
@@ -100,6 +105,7 @@ public class AppletUserController {
|
|
|
|
|
|
@Operation(summary = "领取优惠券")
|
|
|
@PostMapping("/gainCoupon")
|
|
|
+ @Log(value = "领取优惠券", module = LogModuleEnum.APP_OTHER)
|
|
|
public Result<Boolean> gainCoupon(@RequestBody AppGainCouponForm formData) {
|
|
|
Boolean result = couponService.gainCoupon(formData);
|
|
|
return Result.judge(result);
|