From 70b6937ff121a304234486dc59ca400360e82ff2 Mon Sep 17 00:00:00 2001 From: phpcjl <phpcjl@gmail.com> Date: 星期二, 10 十二月 2024 15:45:53 +0800 Subject: [PATCH] 1. --- ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/AgentApplicationController.java | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 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 index 4c8c7d4..cb7d138 100644 --- 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 @@ -1,8 +1,18 @@ 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> @@ -14,7 +24,16 @@ */ @RestController @RequestMapping("/agent-application") -public class AgentApplicationController { +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