123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- module.exports = {
- create: {
- requestBody: [
- "room_id",
- "password",
- "room_phone",
- "title",
- "desc",
- "start_time",
- "end_time",
- "join_end",
- "user_id",
- "apply",
- "province",
- "videodata",
- "place",
- "user_id",
- "adminuser",
- "phone",
- "passwd",
- "vipuser",
- "email",
- "company",
- "sponsor",
- "organizer",
- "openid",
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "room_phone",
- "title",
- "desc",
- "status",
- "apply",
- "start_time",
- "end_time",
- "join_end",
- "province",
- "place",
- "videodata",
- "adminuser",
- "phone",
- "passwd",
- "vipuser",
- "email",
- "company",
- "sponsor",
- "organizer",
- "openid",
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- room_phone: "room_phone",
- room_id: "room_id",
- title: "%title%",
- desc: "desc",
- start_time: "start_time",
- end_time: "end_time",
- join_end: "join_end",
- user_id: "user_id",
- status: "status",
- province: "province",
- place: "place",
- adminuser: "adminuser",
- sponsor: "sponsor",
- organizer: "organizer",
- phone: "phone",
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- apply: {
- params: ["!id"],
- requestBody: ["user_id", "user_name", "goodsList", "contact_tel", "role"],
- service: "apply",
- },
- goods: {
- params: ["!id"],
- requestBody: [
- "_id",
- "totaltype",
- "name",
- "product_type_id",
- "introduction",
- "phase",
- "price",
- "priceunit",
- "image",
- "field",
- "scope",
- "coopermode",
- "business",
- "budget",
- "end_date",
- "difficult_problem",
- "demand",
- "address",
- "mature",
- "team",
- "property",
- "mature",
- "coopercompany",
- "other",
- "contact_tel",
- "contact_user",
- "dockStatus",
- ],
- service: "goods",
- },
- check: {
- params: ["!id", "!dock_id"],
- requestBody: ["status"],
- service: "check",
- },
- // dockCheck: {
- // params: ["!id"],
- // requestBody: ["is_allowed", "reason"],
- // service: "dockCheck",
- // },
- vipdelete: {
- params: ["!id"],
- service: "dockVipDelete",
- },
- };
|