1
This commit is contained in:
15
api/controller_front/sofaware.js
Normal file
15
api/controller_front/sofaware.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const dayjs = require("dayjs");
|
||||
const { querySql, sof_sofawa_ga, op } = require("../../middleware/baseModel");
|
||||
module.exports = {
|
||||
"POST /sofaware/last": async (ctx, next) => {
|
||||
let row = { version: "1.5.0", officialUrl: "https://shopant.baozun.com/plug/#/", updateDate: "2024-05-10", downUrl: "https://bztic-shopant-files.oss-cn-shanghai.aliyuncs.com/prod/split_video/split_video_latest.zip" }
|
||||
return ctx.success(row)
|
||||
},
|
||||
|
||||
"POST /sofaware/ga": async (ctx, next) => {
|
||||
let row = ctx.getBody();
|
||||
const res = await sof_sofawa_ga.create(row);
|
||||
return ctx.success(res);
|
||||
},
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user