简要描述:

  • 申请通知

请求域名:

  • http://yunzshop.com

请求URL:

GET/admin/shop?c=site&a=entry&m=yun_shop&do=5587&route=sysMsg.system-msg.apply-message

参数:

参数名 是否必须 类型 说明
search[is_read] int 消息状态,全部传空,查未读传0,已读1
search[time][start] string 开始时间
search[time][end] string 结束时间

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"list": {
			"total": 1,
			"per_page": 10,
			"current_page": 1,
			"last_page": 1,
			"next_page_url": null,
			"prev_page_url": null,
			"from": 1,
			"to": 1,
			"data": [{
				"id": 14,
				"uniacid": 1,
				"type_id": 1,
				"title": "您有新的系统更新信息,请注意查看!",
				"content": "时间:2020-07-05 23:03:19",
				"redirect_url": "",
				"is_read": 0,
				"created_at": "2020-07-05 23:03:19",
				"read_at": null,
				"belongs_to_type": {
					"id": 1,
					"type_name": "系统通知",
					"icon_src": "icon-ht_content_systemmessage"
				}
			}]
		},
		"search": null,
		"msgType": [{
			"id": 0,
			"type_name": "全部消息",
			"has_many_log_count": 6
		}, {
			"id": 1,
			"type_name": "系统通知",
			"icon_src": "icon-ht_content_systemmessage",
			"has_many_log_count": 1
		}, {
			"id": 2,
			"type_name": "订单通知",
			"icon_src": "icon-ht_content_order",
			"has_many_log_count": 5
		}, {
			"id": 3,
			"type_name": "提现通知",
			"icon_src": "icon-ht_content_tixian",
			"has_many_log_count": 0
		}, {
			"id": 4,
			"type_name": "申请通知",
			"icon_src": "icon-ht_content_apply",
			"has_many_log_count": 0
		}, {
			"id": 5,
			"type_name": "商品库存",
			"icon_src": "icon-ht_content_goods",
			"has_many_log_count": 0
		}, {
			"id": 6,
			"type_name": "优惠券",
			"icon_src": "icon-ht_content_coupons",
			"has_many_log_count": 0
		}]
	}
}

错误时返回:

{
  "result": 0,
  "msg": "获取失败,暂无数据",
  "data": []
}

返回参数说明:

参数名 类型 说明
result int 1
msg string 提示信息
data.list array 消息列表
data.list.data[0].title string 消息标题
data.list.data[0].content string 消息内容
data.list.data[0].redirect_url string 查看详情跳转url,空使用/admin/shop?c=site&a=entry&m=yun_shop&do=2968&route=sysMsg.system-msg.read-system-message&id=消息id
data.list.data[0].is_read int 是否已读,0未读,1已读
data.list.data[0].belongs_to_type array 消息所属的分类信息
data.search array 搜索数据
data.msgType array 消息类型
data.msgType[0].type_name string 类型名
data.msgType[0].icon_src string 类型图标

备注:

  • 更多返回错误代码请看首页的错误代码描述