券 领取数量校验
图库
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
package com.czg.account.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 系统图库 实体类。
|
||||
*
|
||||
* @author zs
|
||||
* @since 2025-09-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Table("sys_image_library")
|
||||
public class SysImageLibrary implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 图片地址
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 图片名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 预留
|
||||
*/
|
||||
private String type;
|
||||
|
||||
@Column(onInsertValue = "now()", onUpdateValue = "now()")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@Column(onInsertValue = "now()")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.czg.account.service;
|
||||
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.account.entity.SysImageLibrary;
|
||||
|
||||
/**
|
||||
* 系统图库 服务层。
|
||||
*
|
||||
* @author zs
|
||||
* @since 2025-09-25
|
||||
*/
|
||||
public interface SysImageLibraryService extends IService<SysImageLibrary> {
|
||||
|
||||
/**
|
||||
* 获取系统图库分页列表
|
||||
* @param name 图库名称
|
||||
* @return 系统图库分页列表
|
||||
*/
|
||||
Page<SysImageLibrary> getImagePage(String name);
|
||||
|
||||
/**
|
||||
* 上传图片
|
||||
* @param bytes 图片字节数组
|
||||
* @param fileName 图片文件名
|
||||
* @param suffix 图片扩展名
|
||||
* @return 图片地址
|
||||
*/
|
||||
String upload(byte[] bytes, String fileName, String suffix) throws Exception;
|
||||
}
|
||||
Reference in New Issue
Block a user