feat: 修改实体类文件
This commit is contained in:
parent
91bf18844a
commit
07567b8deb
|
@ -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")
|
||||
|
|
|
@ -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()
|
|
@ -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
|
||||
|
@ -15,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController
|
|||
@RestController
|
||||
@RequestMapping("/")
|
||||
class IndexController {
|
||||
|
||||
|
||||
@Operation(summary = "访问首页", description = "访问首页")
|
||||
@GetMapping("")
|
||||
fun index(): String {
|
||||
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue