膳逸MIS端:活动的新增、查询和修改

膳逸MIS端活动的新增、查询和修改

Base URLs:

Authentication

shanyi-mis-api

POST 查询活动

POST /mis_user/searchActivityByPage

前端返回要查询活动的信息,后端返回分页查询的活动信息

Body 请求参数

{
  "page": 1,
  "length": 10,
  "id": 1,
  "activityName": "活动",
  "startTime": "1998-07-05",
  "endTime": "2024-07-05",
  "status": 0
}

请求参数

名称位置类型必选说明
Tokenheaderstringnone
bodybodyobjectnone
» pagebodyintegernone
» lengthbodyintegernone
» idbodyintegernone
» activityNamebodystringnone
» startTimebodystringnone
» endTimebodystringnone
» statusbodyinteger活动状态(0未开始,1进行中,2已结束)

返回示例

成功

{
  "msg": "success",
  "result": {
    "totalCount": 1,
    "pageSize": 10,
    "totalPage": 1,
    "pageIndex": 1,
    "list": [
      {
        "reward": "100积分",
        "start_time": "2024-06-01",
        "requirements": "连续打卡3天",
        "participants_count": 0,
        "name": "六一活动",
        "end_time": "2024-06-07",
        "description": "六一活动",
        "id": 1,
        "picture": "https://thirdwx.qlogo.cn/mmopen/vi_32/6ibtnStKibXDUTibnu052w40ps0DKqcUZBYaAiberiasgSsTGXwCLAicmXng2gE48ZnibYrmnPIiaVlNWjpCYiby85ibgM8Q/132",
        "status": 1
      }
    ]
  },
  "code": 200
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgstringtruenonenone
» resultobjecttruenonenone
»» totalCountintegertruenonenone
»» pageSizeintegertruenonenone
»» totalPageintegertruenonenone
»» pageIndexintegertruenonenone
»» list[object]truenonenone
»»» rewardstringfalsenonenone
»»» start_timestringfalsenonenone
»»» requirementsstringfalsenonenone
»»» participants_countintegerfalsenonenone
»»» namestringfalsenonenone
»»» end_timestringfalsenonenone
»»» descriptionstringfalsenonenone
»»» idintegerfalsenonenone
»»» picturestringfalsenonenone
»»» statusintegerfalsenonenone

POST 新增活动

POST /mis_user/addActivity

前端返回要新增的活动信息,后端插入新的活动

Body 请求参数

{
  "name": "测试活动1",
  "description": "测试活动1",
  "requirements": "测试需要1",
  "startTime": "2000-01-01",
  "endTime": "2025-01-01",
  "reward": "棒棒糖1",
  "picture": "http://dummyimage.com/400x400",
  "status": 1
}

请求参数

名称位置类型必选说明
Tokenheaderstringnone
bodybodyobjectnone
» namebodystringnone
» descriptionbodystringnone
» requirementsbodystringnone
» startTimebodystringnone
» endTimebodystringnone
» rewardbodystringnone
» picturebodystringnone
» statusbodyintegernone

返回示例

成功

{
  "msg": "success",
  "code": 200
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgstringtruenonenone

POST 修改活动

POST /mis_user/updateActivity

前端返回修改后的活动信息,后端更新互动信息

Body 请求参数

{
  "id": 5,
  "name": "修改测试活动",
  "description": "修改测试活动",
  "requirements": "修改测试活动",
  "startTime": "2010-01-02",
  "endTime": "2030-01-03",
  "reward": "修改奖励",
  "status": "2",
  "picture": "http://dummyimage.com/400x400"
}

请求参数

名称位置类型必选说明
Tokenheaderstringnone
bodybodyobjectnone
» idbodyintegernone
» namebodystringnone
» descriptionbodystringnone
» requirementsbodystringnone
» startTimebodystringnone
» endTimebodystringnone
» rewardbodystringnone
» statusbodystringnone
» picturebodystringnone

返回示例

成功

{
  "msg": "success",
  "code": 200
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codestringtruenonenone
» msgstringtruenonenone

数据模型

  • 26
    点赞
  • 44
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值