qrcode-framework
Version:
63 lines (62 loc) • 1.66 kB
TypeScript
import { Association, BelongsToManyGetAssociationsMixin } from 'sequelize';
import { BaseModel } from '../../core/BaseModel';
import { RGroup } from './RGroup';
export declare const R_TYPE: {
MATERIAL: number;
URL: number;
INNER_URL: number;
PICTURE: number;
MODEL: number;
};
export declare const R_STATUS: {
NEW: number;
VALID: number;
INVALID: number;
};
export declare class Recommendation extends BaseModel {
static associations: {
groups: Association<Recommendation, RGroup>;
};
id: number;
title: string;
description: string;
thumbUrl: string;
rType: number;
startAt: Date;
endAt: Date;
status: number;
createdAt: Date;
updatedAt: Date;
deleted: boolean;
/**
* 素材推荐格式
* {
* "id": 2004,
* "mid": 200401,
* "type": 4,
* "drawType": 0(普通), 1(透视)
* "drawShape": 0(方形), 1(溶解),2(圆形),3(菱形)
* "borderIndex": "素材具有的参数属性"
* "content": "LOGO推荐文字"
* }
*
* 图片推荐格式
* {
* "id": 1,
* "type: 2, // 使用类型,与素材类型的规范相同
* "drawType": 0(普通), 1(透视)
* "drawShape": 0(方形), 1(溶解),2(圆形),3(菱形)
* "content": "图文推荐文字"
* }
*
* 模板推荐格式
* {
* "id": 1,
* "type": 1,
* "content": "推荐文字"
* }
*/
meta: any;
version: any;
getGroups: BelongsToManyGetAssociationsMixin<RGroup>;
}