mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 修改邮件开关类型
This commit is contained in:
		@@ -6,7 +6,6 @@ import io.swagger.annotations.Api;
 | 
				
			|||||||
import io.swagger.annotations.ApiOperation;
 | 
					import io.swagger.annotations.ApiOperation;
 | 
				
			||||||
import io.swagger.annotations.ApiParam;
 | 
					import io.swagger.annotations.ApiParam;
 | 
				
			||||||
import lombok.RequiredArgsConstructor;
 | 
					import lombok.RequiredArgsConstructor;
 | 
				
			||||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
					 | 
				
			||||||
import org.springframework.validation.annotation.Validated;
 | 
					import org.springframework.validation.annotation.Validated;
 | 
				
			||||||
import org.springframework.web.bind.annotation.GetMapping;
 | 
					import org.springframework.web.bind.annotation.GetMapping;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RequestMapping;
 | 
					import org.springframework.web.bind.annotation.RequestMapping;
 | 
				
			||||||
@@ -22,9 +21,9 @@ import java.io.File;
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
@Validated
 | 
					@Validated
 | 
				
			||||||
@Api(value = "邮件发送案例", tags = {"邮件发送案例"})
 | 
					@Api(value = "邮件发送案例", tags = {"邮件发送案例"})
 | 
				
			||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
 | 
					@RequiredArgsConstructor
 | 
				
			||||||
@RequestMapping("/demo/mail")
 | 
					 | 
				
			||||||
@RestController
 | 
					@RestController
 | 
				
			||||||
 | 
					@RequestMapping("/demo/mail")
 | 
				
			||||||
public class MailController {
 | 
					public class MailController {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @ApiOperation("发送邮件")
 | 
					    @ApiOperation("发送邮件")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@ public class MailProperties {
 | 
				
			|||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 过滤开关
 | 
					     * 过滤开关
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    private String enabled;
 | 
					    private Boolean enabled;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * SMTP服务器域名
 | 
					     * SMTP服务器域名
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user