feat: 开发中...
This commit is contained in:
@@ -35,6 +35,7 @@ public class AuthenticationFilter extends OncePerRequestFilter {
|
|||||||
}
|
}
|
||||||
SecurityContext context = SecurityContextHolder.getContext();
|
SecurityContext context = SecurityContextHolder.getContext();
|
||||||
context.setAuthentication(authentication);
|
context.setAuthentication(authentication);
|
||||||
|
log.info("set authentication info to security context: {}", authentication);
|
||||||
filterChain.doFilter(request, response);
|
filterChain.doFilter(request, response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -40,8 +40,9 @@ public class BlogExceptionHandler {
|
|||||||
|
|
||||||
@ExceptionHandler(NestedRuntimeException.class)
|
@ExceptionHandler(NestedRuntimeException.class)
|
||||||
public ResponseVO<String> onNestedRuntimeException(NestedRuntimeException e) {
|
public ResponseVO<String> onNestedRuntimeException(NestedRuntimeException e) {
|
||||||
if (e.getRootCause() != null) {
|
Throwable rootCause = e.getRootCause();
|
||||||
if (e.getRootCause() instanceof ConstraintViolationException ve) {
|
if (rootCause != null) {
|
||||||
|
if (rootCause instanceof ConstraintViolationException ve) {
|
||||||
return ResponseVO.failed(ve.getConstraintViolations()
|
return ResponseVO.failed(ve.getConstraintViolations()
|
||||||
.stream()
|
.stream()
|
||||||
.findFirst()
|
.findFirst()
|
||||||
@@ -49,7 +50,7 @@ public class BlogExceptionHandler {
|
|||||||
.orElse("未知错误!")
|
.orElse("未知错误!")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return ResponseVO.failed(e.getRootCause().getMessage());
|
return ResponseVO.failed(rootCause.getMessage());
|
||||||
}
|
}
|
||||||
return ResponseVO.failed(e.getMessage());
|
return ResponseVO.failed(e.getMessage());
|
||||||
}
|
}
|
||||||
|
@@ -4,7 +4,6 @@ import cn.hamster3.application.blog.entity.UserEntity;
|
|||||||
import cn.hamster3.application.blog.entity.repo.UserRepository;
|
import cn.hamster3.application.blog.entity.repo.UserRepository;
|
||||||
import cn.hamster3.application.blog.util.BlogUtils;
|
import cn.hamster3.application.blog.util.BlogUtils;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.springframework.data.domain.AuditorAware;
|
import org.springframework.data.domain.AuditorAware;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
@@ -12,7 +11,6 @@ import org.springframework.stereotype.Component;
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
@Slf4j
|
|
||||||
@Component
|
@Component
|
||||||
public class UserAuditorAware implements AuditorAware<UserEntity> {
|
public class UserAuditorAware implements AuditorAware<UserEntity> {
|
||||||
@Resource
|
@Resource
|
||||||
|
@@ -3,6 +3,8 @@ package cn.hamster3.application.blog.entity;
|
|||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
import org.hibernate.annotations.JdbcTypeCode;
|
||||||
|
import org.hibernate.type.SqlTypes;
|
||||||
import org.springframework.data.annotation.CreatedBy;
|
import org.springframework.data.annotation.CreatedBy;
|
||||||
import org.springframework.data.annotation.CreatedDate;
|
import org.springframework.data.annotation.CreatedDate;
|
||||||
import org.springframework.data.annotation.LastModifiedBy;
|
import org.springframework.data.annotation.LastModifiedBy;
|
||||||
@@ -33,6 +35,7 @@ public class AttachEntity {
|
|||||||
@Lob
|
@Lob
|
||||||
@Basic(fetch = FetchType.LAZY)
|
@Basic(fetch = FetchType.LAZY)
|
||||||
@Column(name = "data")
|
@Column(name = "data")
|
||||||
|
@JdbcTypeCode(SqlTypes.LONG32VARBINARY)
|
||||||
private byte[] data;
|
private byte[] data;
|
||||||
|
|
||||||
@CreatedBy
|
@CreatedBy
|
||||||
|
@@ -2,6 +2,9 @@ package cn.hamster3.application.blog.entity;
|
|||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import org.hibernate.annotations.JdbcTypeCode;
|
||||||
|
import org.hibernate.type.SqlTypes;
|
||||||
import org.springframework.data.annotation.CreatedBy;
|
import org.springframework.data.annotation.CreatedBy;
|
||||||
import org.springframework.data.annotation.CreatedDate;
|
import org.springframework.data.annotation.CreatedDate;
|
||||||
import org.springframework.data.annotation.LastModifiedBy;
|
import org.springframework.data.annotation.LastModifiedBy;
|
||||||
@@ -20,9 +23,19 @@ public class BlogAttachEntity {
|
|||||||
@Column(name = "id", nullable = false, updatable = false)
|
@Column(name = "id", nullable = false, updatable = false)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
@Setter
|
||||||
|
@Column(name = "name", nullable = false)
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Setter
|
||||||
|
@Column(name = "content_type", nullable = false)
|
||||||
|
private String contentType;
|
||||||
|
|
||||||
|
@Setter
|
||||||
@Lob
|
@Lob
|
||||||
@Basic(fetch = FetchType.LAZY)
|
@Basic(fetch = FetchType.LAZY)
|
||||||
@Column(name = "data", nullable = false)
|
@Column(name = "data")
|
||||||
|
@JdbcTypeCode(SqlTypes.LONG32VARBINARY)
|
||||||
private byte[] data;
|
private byte[] data;
|
||||||
|
|
||||||
@ManyToOne(optional = false)
|
@ManyToOne(optional = false)
|
||||||
|
@@ -13,6 +13,7 @@ import java.util.UUID;
|
|||||||
|
|
||||||
public interface AttachRepository extends JpaRepository<AttachEntity, Long>, JpaSpecificationExecutor<AttachEntity> {
|
public interface AttachRepository extends JpaRepository<AttachEntity, Long>, JpaSpecificationExecutor<AttachEntity> {
|
||||||
boolean existsByIdAndCreator_Id(Long id, UUID id1);
|
boolean existsByIdAndCreator_Id(Long id, UUID id1);
|
||||||
|
|
||||||
@Query("select a from AttachEntity a where a.id = ?1")
|
@Query("select a from AttachEntity a where a.id = ?1")
|
||||||
AttachEntity findByIdWithContent(Long id);
|
AttachEntity findByIdWithContent(Long id);
|
||||||
|
|
||||||
|
@@ -45,10 +45,7 @@ public class SettingService implements ISettingService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull ResponseVO<PageableVO<SettingInfoResponseVO>> getSettingInfoList(@NotNull Pageable pageable) {
|
public @NotNull ResponseVO<PageableVO<SettingInfoResponseVO>> getSettingInfoList(@NotNull Pageable pageable) {
|
||||||
return PageableVO.success(
|
return PageableVO.success(settingRepo.findAll(pageable).map(o -> settingMapper.entityToInfoVO(o)));
|
||||||
settingRepo.findAll(pageable)
|
|
||||||
.map(o -> settingMapper.entityToInfoVO(o))
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -75,6 +72,7 @@ public class SettingService implements ISettingService {
|
|||||||
if (check != null) {
|
if (check != null) {
|
||||||
return check;
|
return check;
|
||||||
}
|
}
|
||||||
|
log.info("prepare update setting: {}", data);
|
||||||
for (Map.Entry<String, String> entry : data.entrySet()) {
|
for (Map.Entry<String, String> entry : data.entrySet()) {
|
||||||
String id = entry.getKey();
|
String id = entry.getKey();
|
||||||
String content = entry.getValue();
|
String content = entry.getValue();
|
||||||
@@ -99,6 +97,7 @@ public class SettingService implements ISettingService {
|
|||||||
if (!settingRepo.existsByIdIgnoreCase(id)) {
|
if (!settingRepo.existsByIdIgnoreCase(id)) {
|
||||||
return ResponseVO.notFound();
|
return ResponseVO.notFound();
|
||||||
}
|
}
|
||||||
|
log.info("prepare delete setting by id: {}", id);
|
||||||
settingRepo.deleteByIdIgnoreCase(id);
|
settingRepo.deleteByIdIgnoreCase(id);
|
||||||
return ResponseVO.success();
|
return ResponseVO.success();
|
||||||
}
|
}
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
package cn.hamster3.application.blog.vo.blog;
|
package cn.hamster3.application.blog.vo.blog;
|
||||||
|
|
||||||
import cn.hamster3.application.blog.vo.user.UserInfoResponseVO;
|
import cn.hamster3.application.blog.vo.user.UserInfoResponseVO;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
@@ -5,7 +5,6 @@ import jakarta.validation.constraints.NotBlank;
|
|||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import org.hibernate.validator.constraints.Length;
|
import org.hibernate.validator.constraints.Length;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@@ -1 +1 @@
|
|||||||
3.0.41
|
3.0.42
|
@@ -17,6 +17,9 @@ import { Configuration } from '../configuration';
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
||||||
import { AttachAttachIDBody } from '../models';
|
import { AttachAttachIDBody } from '../models';
|
||||||
|
import { ResponseVOAttachInfoResponseVO } from '../models';
|
||||||
|
import { ResponseVOLong } from '../models';
|
||||||
|
import { ResponseVOPageableVOAttachInfoResponseVO } from '../models';
|
||||||
import { ResponseVOVoid } from '../models';
|
import { ResponseVOVoid } from '../models';
|
||||||
import { V1AttachBody } from '../models';
|
import { V1AttachBody } from '../models';
|
||||||
/**
|
/**
|
||||||
@@ -27,15 +30,12 @@ export const AttachControllerApiAxiosParamCreator = function (configuration?: Co
|
|||||||
return {
|
return {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {V1AttachBody} body
|
* @summary 新建附件
|
||||||
|
* @param {V1AttachBody} [body]
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
createAttach: async (body: V1AttachBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
createAttach: async (body?: V1AttachBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
// verify required parameter 'body' is not null or undefined
|
|
||||||
if (body === null || body === undefined) {
|
|
||||||
throw new RequiredError('body','Required parameter body was null or undefined when calling createAttach.');
|
|
||||||
}
|
|
||||||
const localVarPath = `/api/v1/attach/`;
|
const localVarPath = `/api/v1/attach/`;
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
@@ -69,11 +69,12 @@ export const AttachControllerApiAxiosParamCreator = function (configuration?: Co
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} attachID
|
* @summary 删除附件
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
deleteAttach: async (attachID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
deleteAttach: async (attachID: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
// verify required parameter 'attachID' is not null or undefined
|
// verify required parameter 'attachID' is not null or undefined
|
||||||
if (attachID === null || attachID === undefined) {
|
if (attachID === null || attachID === undefined) {
|
||||||
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling deleteAttach.');
|
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling deleteAttach.');
|
||||||
@@ -108,14 +109,55 @@ export const AttachControllerApiAxiosParamCreator = function (configuration?: Co
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} attachID
|
* @summary 获取附件内容
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
getAttach: async (attachID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
getAttachContent: async (attachID: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
// verify required parameter 'attachID' is not null or undefined
|
// verify required parameter 'attachID' is not null or undefined
|
||||||
if (attachID === null || attachID === undefined) {
|
if (attachID === null || attachID === undefined) {
|
||||||
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling getAttach.');
|
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling getAttachContent.');
|
||||||
|
}
|
||||||
|
const localVarPath = `/api/v1/attach/{attachID}/content`
|
||||||
|
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
||||||
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
let baseOptions;
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
||||||
|
const localVarHeaderParameter = {} as any;
|
||||||
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
const query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (const key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (const key in options.params) {
|
||||||
|
query.set(key, options.params[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
||||||
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary 获取附件信息
|
||||||
|
* @param {number} attachID
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAttachInfo: async (attachID: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
// verify required parameter 'attachID' is not null or undefined
|
||||||
|
if (attachID === null || attachID === undefined) {
|
||||||
|
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling getAttachInfo.');
|
||||||
}
|
}
|
||||||
const localVarPath = `/api/v1/attach/{attachID}/`
|
const localVarPath = `/api/v1/attach/{attachID}/`
|
||||||
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
||||||
@@ -147,10 +189,21 @@ export const AttachControllerApiAxiosParamCreator = function (configuration?: Co
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
* @summary 获取附件列表
|
||||||
|
* @param {number} page 页码
|
||||||
|
* @param {number} size 大小
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
getAttachList: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
getAttachList: async (page: number, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
// verify required parameter 'page' is not null or undefined
|
||||||
|
if (page === null || page === undefined) {
|
||||||
|
throw new RequiredError('page','Required parameter page was null or undefined when calling getAttachList.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'size' is not null or undefined
|
||||||
|
if (size === null || size === undefined) {
|
||||||
|
throw new RequiredError('size','Required parameter size was null or undefined when calling getAttachList.');
|
||||||
|
}
|
||||||
const localVarPath = `/api/v1/attach/`;
|
const localVarPath = `/api/v1/attach/`;
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
@@ -162,6 +215,14 @@ export const AttachControllerApiAxiosParamCreator = function (configuration?: Co
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
if (page !== undefined) {
|
||||||
|
localVarQueryParameter['page'] = page;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (size !== undefined) {
|
||||||
|
localVarQueryParameter['size'] = size;
|
||||||
|
}
|
||||||
|
|
||||||
const query = new URLSearchParams(localVarUrlObj.search);
|
const query = new URLSearchParams(localVarUrlObj.search);
|
||||||
for (const key in localVarQueryParameter) {
|
for (const key in localVarQueryParameter) {
|
||||||
query.set(key, localVarQueryParameter[key]);
|
query.set(key, localVarQueryParameter[key]);
|
||||||
@@ -180,19 +241,16 @@ export const AttachControllerApiAxiosParamCreator = function (configuration?: Co
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AttachAttachIDBody} body
|
* @summary 更新附件
|
||||||
* @param {string} attachID
|
* @param {number} attachID
|
||||||
|
* @param {AttachAttachIDBody} [body]
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
modifyAttach: async (body: AttachAttachIDBody, attachID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
updateAttach: async (attachID: number, body?: AttachAttachIDBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
// verify required parameter 'body' is not null or undefined
|
|
||||||
if (body === null || body === undefined) {
|
|
||||||
throw new RequiredError('body','Required parameter body was null or undefined when calling modifyAttach.');
|
|
||||||
}
|
|
||||||
// verify required parameter 'attachID' is not null or undefined
|
// verify required parameter 'attachID' is not null or undefined
|
||||||
if (attachID === null || attachID === undefined) {
|
if (attachID === null || attachID === undefined) {
|
||||||
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling modifyAttach.');
|
throw new RequiredError('attachID','Required parameter attachID was null or undefined when calling updateAttach.');
|
||||||
}
|
}
|
||||||
const localVarPath = `/api/v1/attach/{attachID}/`
|
const localVarPath = `/api/v1/attach/{attachID}/`
|
||||||
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
.replace(`{${"attachID"}}`, encodeURIComponent(String(attachID)));
|
||||||
@@ -237,11 +295,12 @@ export const AttachControllerApiFp = function(configuration?: Configuration) {
|
|||||||
return {
|
return {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {V1AttachBody} body
|
* @summary 新建附件
|
||||||
|
* @param {V1AttachBody} [body]
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async createAttach(body: V1AttachBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
async createAttach(body?: V1AttachBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOLong>>> {
|
||||||
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).createAttach(body, options);
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).createAttach(body, options);
|
||||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||||
@@ -250,11 +309,12 @@ export const AttachControllerApiFp = function(configuration?: Configuration) {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} attachID
|
* @summary 删除附件
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async deleteAttach(attachID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
async deleteAttach(attachID: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||||
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).deleteAttach(attachID, options);
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).deleteAttach(attachID, options);
|
||||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||||
@@ -263,12 +323,13 @@ export const AttachControllerApiFp = function(configuration?: Configuration) {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} attachID
|
* @summary 获取附件内容
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async getAttach(attachID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
async getAttachContent(attachID: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Blob>>> {
|
||||||
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).getAttach(attachID, options);
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).getAttachContent(attachID, options);
|
||||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||||
return axios.request(axiosRequestArgs);
|
return axios.request(axiosRequestArgs);
|
||||||
@@ -276,11 +337,13 @@ export const AttachControllerApiFp = function(configuration?: Configuration) {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
* @summary 获取附件信息
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async getAttachList(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
async getAttachInfo(attachID: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOAttachInfoResponseVO>>> {
|
||||||
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).getAttachList(options);
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).getAttachInfo(attachID, options);
|
||||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||||
return axios.request(axiosRequestArgs);
|
return axios.request(axiosRequestArgs);
|
||||||
@@ -288,13 +351,29 @@ export const AttachControllerApiFp = function(configuration?: Configuration) {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AttachAttachIDBody} body
|
* @summary 获取附件列表
|
||||||
* @param {string} attachID
|
* @param {number} page 页码
|
||||||
|
* @param {number} size 大小
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async modifyAttach(body: AttachAttachIDBody, attachID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
async getAttachList(page: number, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOPageableVOAttachInfoResponseVO>>> {
|
||||||
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).modifyAttach(body, attachID, options);
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).getAttachList(page, size, options);
|
||||||
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||||
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
};
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary 更新附件
|
||||||
|
* @param {number} attachID
|
||||||
|
* @param {AttachAttachIDBody} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async updateAttach(attachID: number, body?: AttachAttachIDBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ResponseVOVoid>>> {
|
||||||
|
const localVarAxiosArgs = await AttachControllerApiAxiosParamCreator(configuration).updateAttach(attachID, body, options);
|
||||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||||
return axios.request(axiosRequestArgs);
|
return axios.request(axiosRequestArgs);
|
||||||
@@ -311,48 +390,65 @@ export const AttachControllerApiFactory = function (configuration?: Configuratio
|
|||||||
return {
|
return {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {V1AttachBody} body
|
* @summary 新建附件
|
||||||
|
* @param {V1AttachBody} [body]
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async createAttach(body: V1AttachBody, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
async createAttach(body?: V1AttachBody, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOLong>> {
|
||||||
return AttachControllerApiFp(configuration).createAttach(body, options).then((request) => request(axios, basePath));
|
return AttachControllerApiFp(configuration).createAttach(body, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} attachID
|
* @summary 删除附件
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async deleteAttach(attachID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
async deleteAttach(attachID: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||||
return AttachControllerApiFp(configuration).deleteAttach(attachID, options).then((request) => request(axios, basePath));
|
return AttachControllerApiFp(configuration).deleteAttach(attachID, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} attachID
|
* @summary 获取附件内容
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async getAttach(attachID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
async getAttachContent(attachID: number, options?: AxiosRequestConfig): Promise<AxiosResponse<Blob>> {
|
||||||
return AttachControllerApiFp(configuration).getAttach(attachID, options).then((request) => request(axios, basePath));
|
return AttachControllerApiFp(configuration).getAttachContent(attachID, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
* @summary 获取附件信息
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async getAttachList(options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
async getAttachInfo(attachID: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOAttachInfoResponseVO>> {
|
||||||
return AttachControllerApiFp(configuration).getAttachList(options).then((request) => request(axios, basePath));
|
return AttachControllerApiFp(configuration).getAttachInfo(attachID, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AttachAttachIDBody} body
|
* @summary 获取附件列表
|
||||||
* @param {string} attachID
|
* @param {number} page 页码
|
||||||
|
* @param {number} size 大小
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async modifyAttach(body: AttachAttachIDBody, attachID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
async getAttachList(page: number, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOPageableVOAttachInfoResponseVO>> {
|
||||||
return AttachControllerApiFp(configuration).modifyAttach(body, attachID, options).then((request) => request(axios, basePath));
|
return AttachControllerApiFp(configuration).getAttachList(page, size, options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary 更新附件
|
||||||
|
* @param {number} attachID
|
||||||
|
* @param {AttachAttachIDBody} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async updateAttach(attachID: number, body?: AttachAttachIDBody, options?: AxiosRequestConfig): Promise<AxiosResponse<ResponseVOVoid>> {
|
||||||
|
return AttachControllerApiFp(configuration).updateAttach(attachID, body, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -366,52 +462,70 @@ export const AttachControllerApiFactory = function (configuration?: Configuratio
|
|||||||
export class AttachControllerApi extends BaseAPI {
|
export class AttachControllerApi extends BaseAPI {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {V1AttachBody} body
|
* @summary 新建附件
|
||||||
|
* @param {V1AttachBody} [body]
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
* @memberof AttachControllerApi
|
* @memberof AttachControllerApi
|
||||||
*/
|
*/
|
||||||
public async createAttach(body: V1AttachBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
public async createAttach(body?: V1AttachBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOLong>> {
|
||||||
return AttachControllerApiFp(this.configuration).createAttach(body, options).then((request) => request(this.axios, this.basePath));
|
return AttachControllerApiFp(this.configuration).createAttach(body, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} attachID
|
* @summary 删除附件
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
* @memberof AttachControllerApi
|
* @memberof AttachControllerApi
|
||||||
*/
|
*/
|
||||||
public async deleteAttach(attachID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
public async deleteAttach(attachID: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||||
return AttachControllerApiFp(this.configuration).deleteAttach(attachID, options).then((request) => request(this.axios, this.basePath));
|
return AttachControllerApiFp(this.configuration).deleteAttach(attachID, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} attachID
|
* @summary 获取附件内容
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
* @memberof AttachControllerApi
|
* @memberof AttachControllerApi
|
||||||
*/
|
*/
|
||||||
public async getAttach(attachID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
public async getAttachContent(attachID: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<Blob>> {
|
||||||
return AttachControllerApiFp(this.configuration).getAttach(attachID, options).then((request) => request(this.axios, this.basePath));
|
return AttachControllerApiFp(this.configuration).getAttachContent(attachID, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
* @summary 获取附件信息
|
||||||
|
* @param {number} attachID
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
* @memberof AttachControllerApi
|
* @memberof AttachControllerApi
|
||||||
*/
|
*/
|
||||||
public async getAttachList(options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
public async getAttachInfo(attachID: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOAttachInfoResponseVO>> {
|
||||||
return AttachControllerApiFp(this.configuration).getAttachList(options).then((request) => request(this.axios, this.basePath));
|
return AttachControllerApiFp(this.configuration).getAttachInfo(attachID, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AttachAttachIDBody} body
|
* @summary 获取附件列表
|
||||||
* @param {string} attachID
|
* @param {number} page 页码
|
||||||
|
* @param {number} size 大小
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
* @memberof AttachControllerApi
|
* @memberof AttachControllerApi
|
||||||
*/
|
*/
|
||||||
public async modifyAttach(body: AttachAttachIDBody, attachID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
public async getAttachList(page: number, size: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOPageableVOAttachInfoResponseVO>> {
|
||||||
return AttachControllerApiFp(this.configuration).modifyAttach(body, attachID, options).then((request) => request(this.axios, this.basePath));
|
return AttachControllerApiFp(this.configuration).getAttachList(page, size, options).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary 更新附件
|
||||||
|
* @param {number} attachID
|
||||||
|
* @param {AttachAttachIDBody} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AttachControllerApi
|
||||||
|
*/
|
||||||
|
public async updateAttach(attachID: number, body?: AttachAttachIDBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<ResponseVOVoid>> {
|
||||||
|
return AttachControllerApiFp(this.configuration).updateAttach(attachID, body, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -22,5 +22,5 @@ export interface AttachAttachIDBody {
|
|||||||
* @type {Blob}
|
* @type {Blob}
|
||||||
* @memberof AttachAttachIDBody
|
* @memberof AttachAttachIDBody
|
||||||
*/
|
*/
|
||||||
file?: Blob;
|
file: Blob;
|
||||||
}
|
}
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
import { UserInfoResponseVO } from './user-info-response-vo';
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
@@ -25,10 +26,16 @@ export interface AttachInfoResponseVO {
|
|||||||
id: number;
|
id: number;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {UserInfoResponseVO}
|
||||||
* @memberof AttachInfoResponseVO
|
* @memberof AttachInfoResponseVO
|
||||||
*/
|
*/
|
||||||
creator: string;
|
creator: UserInfoResponseVO;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {UserInfoResponseVO}
|
||||||
|
* @memberof AttachInfoResponseVO
|
||||||
|
*/
|
||||||
|
updater: UserInfoResponseVO;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
|
@@ -29,12 +29,6 @@ export interface BlogUpdateRequireVO {
|
|||||||
* @memberof BlogUpdateRequireVO
|
* @memberof BlogUpdateRequireVO
|
||||||
*/
|
*/
|
||||||
abstracts?: string;
|
abstracts?: string;
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof BlogUpdateRequireVO
|
|
||||||
*/
|
|
||||||
password?: string;
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
@@ -6,6 +6,7 @@ export * from './pageable-voattach-info-response-vo';
|
|||||||
export * from './pageable-voblog-info-response-vo';
|
export * from './pageable-voblog-info-response-vo';
|
||||||
export * from './pageable-vosetting-info-response-vo';
|
export * from './pageable-vosetting-info-response-vo';
|
||||||
export * from './pageable-vouser-info-response-vo';
|
export * from './pageable-vouser-info-response-vo';
|
||||||
|
export * from './response-voattach-info-response-vo';
|
||||||
export * from './response-voblog-info-response-vo';
|
export * from './response-voblog-info-response-vo';
|
||||||
export * from './response-volong';
|
export * from './response-volong';
|
||||||
export * from './response-vopageable-voattach-info-response-vo';
|
export * from './response-vopageable-voattach-info-response-vo';
|
||||||
|
@@ -0,0 +1,39 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* OpenAPI definition
|
||||||
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: v0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AttachInfoResponseVO } from './attach-info-response-vo';
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface ResponseVOAttachInfoResponseVO
|
||||||
|
*/
|
||||||
|
export interface ResponseVOAttachInfoResponseVO {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof ResponseVOAttachInfoResponseVO
|
||||||
|
*/
|
||||||
|
code?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof ResponseVOAttachInfoResponseVO
|
||||||
|
*/
|
||||||
|
msg?: string;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {AttachInfoResponseVO}
|
||||||
|
* @memberof ResponseVOAttachInfoResponseVO
|
||||||
|
*/
|
||||||
|
content?: AttachInfoResponseVO;
|
||||||
|
}
|
@@ -22,5 +22,5 @@ export interface V1AttachBody {
|
|||||||
* @type {Blob}
|
* @type {Blob}
|
||||||
* @memberof V1AttachBody
|
* @memberof V1AttachBody
|
||||||
*/
|
*/
|
||||||
file?: Blob;
|
file: Blob;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user