|
@@ -2,10 +2,11 @@
|
|
* @Author: fuyu
|
|
* @Author: fuyu
|
|
* @Date: 2021-03-23 11:56:31
|
|
* @Date: 2021-03-23 11:56:31
|
|
* @LastEditors: fuyu
|
|
* @LastEditors: fuyu
|
|
- * @LastEditTime: 2021-03-28 19:38:15
|
|
|
|
- * @FilePath: /sql_merge/src/modules/api/controller.js
|
|
|
|
|
|
+ * @LastEditTime: 2021-03-30 23:08:50
|
|
|
|
+ * @FilePath: /project/sql_merge/src/modules/api/controller.js
|
|
*/
|
|
*/
|
|
import {moveReport, movePacs} from '../../service/move'
|
|
import {moveReport, movePacs} from '../../service/move'
|
|
|
|
+import {moveImage} from '../../service/image'
|
|
import {_check} from '../../service/check'
|
|
import {_check} from '../../service/check'
|
|
export async function move(ctx) {
|
|
export async function move(ctx) {
|
|
const institution_id = ctx.request.body.institution_id
|
|
const institution_id = ctx.request.body.institution_id
|
|
@@ -18,6 +19,12 @@ export async function pacs(ctx) {
|
|
await movePacs(institution_id, offset)
|
|
await movePacs(institution_id, offset)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+export async function image(ctx) {
|
|
|
|
+ const offset = ctx.request.body.offset
|
|
|
|
+ await moveImage(offset)
|
|
|
|
+}
|
|
|
|
+
|
|
export async function check(ctx) {
|
|
export async function check(ctx) {
|
|
await _check()
|
|
await _check()
|
|
ctx.redirect('/html');
|
|
ctx.redirect('/html');
|