Commit 77cc6158 by 任晓松

商标驳回复审

parent 20508a9c
var APIBase = require("../../api.base");
var system = require("../../../system");
var settings = require("../../../../config/settings");
class tmreview extends APIBase{
constructor() {
super();
this.orderDeliverSve = system.getObject("service.dbcorder.orderDeliverSve");
}
async springBoard(pobj, qobj, req) {
if (!pobj.actionType) {
return system.getResult(null, "actionType参数不能为空");
}
var result = await this.opActionProcess(pobj, pobj.actionType, req);
return result;
}
async opActionProcess(pobj, action_type, req) {
var opResult = null;
switch (action_type) {
case "addReviewList":
opResult = await this.orderDeliverSve.submitReview(pobj,pobj.actionBody);
break;
case "getReOrderList"://获取订单列表信息
opResult = await this.orderDeliverSve.getReOrderList(pobj, pobj.actionBody);
break;
case "addOfficial"://接收官文信息
opResult = await this.orderDeliverSve.addOfficial(pobj,pobj.actionBody);
break;
case "getOfficalList":
opResult = await this.orderDeliverSve.getOfficialList(pobj,pobj.actionBody)
break;
default:
opResult = system.getResult(null, "action_type参数错误");
break;
}
return opResult;
}
}
module.exports = tmreview;
\ No newline at end of file
const system = require("../../../system");
const Dao = require("../../dao.base");
class OrderdeliveryofficialDao extends Dao {
constructor() {
super(Dao.getModelName(OrderdeliveryofficialDao));
}
}
module.exports = OrderdeliveryofficialDao;
const system = require("../../../system");
const settings = require("../../../../config/settings");
const uiconfig = system.getUiConfig2(settings.appKey);
module.exports = (db, DataTypes) => {
return db.define("orderOfficial", {
sourceNo: DataTypes.STRING(128), // 订单号
channelUserId: DataTypes.STRING(128), // 用户id
officialInfo: DataTypes.JSON // 官文信息
}, {
paranoid: true,//假的删除
underscored: true,
version: true,
freezeTableName: true,
timestamps: true,
updatedAt: true,
tableName: 'c_delivery_official',
validate: {
},
indexes: [
]
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment