From 44afbc3dd1cb32a3257dfc32b92fb16279c95bb9 Mon Sep 17 00:00:00 2001 From: phpcjl <phpcjl@gmail.com> Date: 星期三, 11 十二月 2024 17:04:51 +0800 Subject: [PATCH] 1.后台管理-商品管理 --- ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/AgentApplicationController.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/AgentApplicationController.java b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/AgentApplicationController.java new file mode 100644 index 0000000..cb7d138 --- /dev/null +++ b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/AgentApplicationController.java @@ -0,0 +1,39 @@ +package com.ruoyi.account.controller; + + +import com.ruoyi.account.api.model.AgentApplication; +import com.ruoyi.account.service.AgentApplicationService; +import com.ruoyi.common.core.domain.R; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.other.api.domain.VipSetting; +import io.swagger.annotations.ApiOperation; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * <p> + * 前端控制器 + * </p> + * + * @author luodangjia + * @since 2024-11-21 + */ +@RestController +@RequestMapping("/agent-application") +public class AgentApplicationController extends BaseController { + @Resource + private AgentApplicationService agentApplicationService; + + @PostMapping("/apply") + @ApiOperation(value = "会员申请", tags = {"会员中心-小程序"}) + public R<Void> apply(@RequestBody AgentApplication agentApplication) { + agentApplicationService.apply(agentApplication); + return R.ok(); + } + +} + -- Gitblit v1.7.1