You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
1.8 KiB
85 lines
1.8 KiB
'use strict';
|
|
const moment = require('moment')
|
|
|
|
async function edit (ctx) {
|
|
try {
|
|
const models = ctx.fs.dc.models;
|
|
const { userId, token } = ctx.fs.api
|
|
|
|
ctx.status = 204;
|
|
} catch (error) {
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
|
|
ctx.status = 400;
|
|
ctx.body = {}
|
|
}
|
|
}
|
|
|
|
async function get (ctx) {
|
|
try {
|
|
const models = ctx.fs.dc.models;
|
|
const { userId, token } = ctx.fs.api
|
|
|
|
ctx.status = 204;
|
|
} catch (error) {
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
|
|
ctx.status = 400;
|
|
ctx.body = {}
|
|
}
|
|
}
|
|
|
|
async function banned (ctx) {
|
|
try {
|
|
const models = ctx.fs.dc.models;
|
|
const { userId, token } = ctx.fs.api
|
|
|
|
ctx.status = 204;
|
|
} catch (error) {
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
|
|
ctx.status = 400;
|
|
ctx.body = {}
|
|
}
|
|
}
|
|
|
|
async function del (ctx) {
|
|
try {
|
|
const models = ctx.fs.dc.models;
|
|
const { userId, token } = ctx.fs.api
|
|
|
|
ctx.status = 204;
|
|
} catch (error) {
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
|
|
ctx.status = 400;
|
|
ctx.body = {}
|
|
}
|
|
}
|
|
|
|
async function copy (ctx) {
|
|
try {
|
|
const models = ctx.fs.dc.models;
|
|
const { userId, token } = ctx.fs.api
|
|
|
|
ctx.status = 204;
|
|
} catch (error) {
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
|
|
ctx.status = 400;
|
|
ctx.body = {}
|
|
}
|
|
}
|
|
|
|
async function detail (ctx) {
|
|
try {
|
|
const models = ctx.fs.dc.models;
|
|
const { userId, token } = ctx.fs.api
|
|
|
|
ctx.status = 204;
|
|
} catch (error) {
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
|
|
ctx.status = 400;
|
|
ctx.body = {}
|
|
}
|
|
}
|
|
|
|
|
|
module.exports = {
|
|
edit, get, banned, del, copy, detail
|
|
};
|