feat: 修改实体类文件

This commit is contained in:
bunny 2024-09-27 12:05:16 +08:00
parent 91bf18844a
commit 07567b8deb
3 changed files with 5 additions and 6 deletions

View File

@ -2,7 +2,6 @@ package cn.bunny.dao.entity.system
import cn.bunny.dao.entity.BaseEntity
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import io.swagger.v3.oas.annotations.media.Schema
import lombok.experimental.Accessors
@ -18,7 +17,6 @@ import lombok.experimental.Accessors
*/
@Accessors(chain = true)
@TableName("sys_power")
@ApiModel(value = "", description = "")
@Schema(name = "Power对象", title = "权限", description = "权限")
class Power(
@Schema(name = "parentId", title = "父级id")

View File

@ -1,9 +1,9 @@
package cn.bunny.dao.entity.system
import cn.bunny.dao.entity.BaseEntity
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.v3.oas.annotations.media.Schema
import lombok.experimental.Accessors
import java.io.Serializable
/**
*
@ -23,4 +23,4 @@ data class RouterPower(
@Schema(name = "powerId", title = "角色ID")
var powerId: Long? = null,
) : Serializable
) : BaseEntity()

View File

@ -1,6 +1,7 @@
package cn.bunny.services.controller
import cn.hutool.captcha.CaptchaUtil
import cn.hutool.captcha.CircleCaptcha
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.tags.Tag
import org.springframework.http.HttpHeaders
@ -28,7 +29,7 @@ class IndexController {
val headers = HttpHeaders()
headers.contentType = MediaType.IMAGE_JPEG
// 生成验证码
val captcha = CaptchaUtil.createCircleCaptcha(150, 48, 4, 2)
val captcha: CircleCaptcha = CaptchaUtil.createCircleCaptcha(150, 48, 4, 2)
val image = captcha.imageBytes
return ResponseEntity(image, headers, HttpStatus.OK)
}