pull/97/head
orzi! 3 years ago
parent 7e5d1540e0
commit 54da8cdf35

@ -297,7 +297,7 @@ const fileQueue = ref<UploadFileInfo[]>([]);
const imageContents = ref<Item.CommentItemProps[]>([]);
const videoContents = ref<Item.CommentItemProps[]>([]);
const attachmentContents = ref<Item.AttachmentProps[]>([]);
const visitType = ref<0 | 1 | 2>(0)
const visitType = ref<Item.VisibilityStatus>(0)
const visibilities = [{value: 0, label: "公开"}, {value: 1, label: "私密"}, {value: 2, label: "好友可见"}]
const uploadGateway = import.meta.env.VITE_HOST + '/v1/attachment';

@ -235,7 +235,7 @@ const showLockModal = ref(false);
const showStickModal = ref(false);
const showVisibilityModal = ref(false);
const loading = ref(false);
const tempVisibility = ref<0 | 1 | 2>(0);
const tempVisibility = ref<Item.VisibilityStatus>(0);
const emit = defineEmits<{
(e: 'reload'): void;

@ -126,8 +126,8 @@ declare module NetParams {
interface PostVisibilityPost {
id: number,
/** 可见性 0公开 1私密 2好友可见 */
visibility: 0 | 1 | 2
/** 可见性0为公开1为私密2为好友可见 */
visibility: Item.VisibilityStatus
}
interface PostGetPostStar {
@ -164,8 +164,8 @@ declare module NetParams {
users: string[],
/** 附件价格 */
attachment_price: number,
/** 可见性 0公开 1私密 2好友可见 */
visibility: 0 | 1 | 2
/** 可见性0为公开1为私密2为好友可见 */
visibility: Item.VisibilityStatus
}
interface PostDeletePost {

@ -117,8 +117,8 @@ declare module NetReq {
}
interface PostVisibilityPost {
/** 可见性 0公开 1私密 2好友可见 */
visibility_status: 0 | 1 | 2
/** 可见性0为公开1为私密2为好友可见 */
visibility_status: Item.VisibilityStatus
}
interface PostGetPostStar {

@ -1,5 +1,8 @@
declare module Item {
/** 可见性0为公开1为私密2为好友可见 */
type VisibilityStatus = 0 | 1 | 2;
interface UserInfo {
/** 用户UID */
id: number,
@ -161,8 +164,8 @@ declare module Item {
contents: PostItemProps[],
/** 标签列表 */
tags: { [key: string]: number } | string,
/** 可见性 0公开 1私密 2好友可见 */
visibility: 0 | 1 | 2,
/** 可见性0为公开1为私密2为好友可见 */
visibility: VisibilityStatus,
/** 是否锁定 */
is_lock: number,
/** 是否置顶 */

Loading…
Cancel
Save