guhongwei 3 年之前
父节点
当前提交
94a56231fc
共有 2 个文件被更改,包括 0 次插入5 次删除
  1. 0 3
      app/controller/patent/.patentassess.js
  2. 0 2
      app/model/patent/patentassess.js

+ 0 - 3
app/controller/patent/.patentassess.js

@@ -2,7 +2,6 @@ module.exports = {
   create: {
     requestBody: [
       "user_id",
-      "admin_id",
       "patent_id",
       "create_number",
       "patent_name",
@@ -27,7 +26,6 @@ module.exports = {
     params: ["!id"],
     requestBody: [
       "user_id",
-      "admin_id",
       "patent_id",
       "create_number",
       "patent_name",
@@ -55,7 +53,6 @@ module.exports = {
     parameters: {
       query: {
         user_id: "user_id",
-        admin_id: "admin_id",
         patent_id: "patent_id",
         create_number: "create_number",
         patent_name: "patent_name",

+ 0 - 2
app/model/patent/patentassess.js

@@ -6,7 +6,6 @@ const { ObjectId } = require('mongoose').Types;
 // 价值评估表
 const patentassess = {
   user_id: { type: ObjectId }, // 用户id
-  admin_id: { type: ObjectId }, // 管理员id
   patent_id: { type: ObjectId }, // 专利id
   create_number: { type: String }, // 申请号
   patent_name: { type: String }, // 专利名称
@@ -27,7 +26,6 @@ const patentassess = {
 const schema = new Schema(patentassess, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });
 schema.index({ user_id: 1 });
-schema.index({ admin_id: 1 });
 schema.index({ patent_id: 1 });
 schema.index({ create_number: 1 });
 schema.index({ type: 1 });