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 cn.bunny.dao.entity.BaseEntity
|
||||||
import com.baomidou.mybatisplus.annotation.TableName
|
import com.baomidou.mybatisplus.annotation.TableName
|
||||||
import io.swagger.annotations.ApiModel
|
|
||||||
import io.swagger.annotations.ApiModelProperty
|
import io.swagger.annotations.ApiModelProperty
|
||||||
import io.swagger.v3.oas.annotations.media.Schema
|
import io.swagger.v3.oas.annotations.media.Schema
|
||||||
import lombok.experimental.Accessors
|
import lombok.experimental.Accessors
|
||||||
|
@ -18,7 +17,6 @@ import lombok.experimental.Accessors
|
||||||
*/
|
*/
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@TableName("sys_power")
|
@TableName("sys_power")
|
||||||
@ApiModel(value = "", description = "")
|
|
||||||
@Schema(name = "Power对象", title = "权限", description = "权限")
|
@Schema(name = "Power对象", title = "权限", description = "权限")
|
||||||
class Power(
|
class Power(
|
||||||
@Schema(name = "parentId", title = "父级id")
|
@Schema(name = "parentId", title = "父级id")
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package cn.bunny.dao.entity.system
|
package cn.bunny.dao.entity.system
|
||||||
|
|
||||||
|
import cn.bunny.dao.entity.BaseEntity
|
||||||
import com.baomidou.mybatisplus.annotation.TableName
|
import com.baomidou.mybatisplus.annotation.TableName
|
||||||
import io.swagger.v3.oas.annotations.media.Schema
|
import io.swagger.v3.oas.annotations.media.Schema
|
||||||
import lombok.experimental.Accessors
|
import lombok.experimental.Accessors
|
||||||
import java.io.Serializable
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -23,4 +23,4 @@ data class RouterPower(
|
||||||
|
|
||||||
@Schema(name = "powerId", title = "角色ID")
|
@Schema(name = "powerId", title = "角色ID")
|
||||||
var powerId: Long? = null,
|
var powerId: Long? = null,
|
||||||
) : Serializable
|
) : BaseEntity()
|
|
@ -1,6 +1,7 @@
|
||||||
package cn.bunny.services.controller
|
package cn.bunny.services.controller
|
||||||
|
|
||||||
import cn.hutool.captcha.CaptchaUtil
|
import cn.hutool.captcha.CaptchaUtil
|
||||||
|
import cn.hutool.captcha.CircleCaptcha
|
||||||
import io.swagger.v3.oas.annotations.Operation
|
import io.swagger.v3.oas.annotations.Operation
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag
|
import io.swagger.v3.oas.annotations.tags.Tag
|
||||||
import org.springframework.http.HttpHeaders
|
import org.springframework.http.HttpHeaders
|
||||||
|
@ -15,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/")
|
@RequestMapping("/")
|
||||||
class IndexController {
|
class IndexController {
|
||||||
|
|
||||||
@Operation(summary = "访问首页", description = "访问首页")
|
@Operation(summary = "访问首页", description = "访问首页")
|
||||||
@GetMapping("")
|
@GetMapping("")
|
||||||
fun index(): String {
|
fun index(): String {
|
||||||
|
@ -28,7 +29,7 @@ class IndexController {
|
||||||
val headers = HttpHeaders()
|
val headers = HttpHeaders()
|
||||||
headers.contentType = MediaType.IMAGE_JPEG
|
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
|
val image = captcha.imageBytes
|
||||||
return ResponseEntity(image, headers, HttpStatus.OK)
|
return ResponseEntity(image, headers, HttpStatus.OK)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue