简要描述:

  • 获取设置

请求URL:

plugin.store-projects.pos.setting.getSetting

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "成功",
	"data": {
		"setting": {
			"expect_days": 1,
			"start_hour": "01:00",
			"end_hour": "18:59",
			"start_time": 3600,
			"end_time": 68399
		},
		"expect_list": [{
				"id": 1,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "00:00",
				"end_hour": "00:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 0,
				"end_time": 3599,
				"expect_num": 0,
				"status": 0,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-26 17:57:34",
				"deleted_at": null
			},
			{
				"id": 2,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "01:00",
				"end_hour": "01:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 3600,
				"end_time": 7199,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 3,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "02:00",
				"end_hour": "02:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 7200,
				"end_time": 10799,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 4,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "03:00",
				"end_hour": "03:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 10800,
				"end_time": 14399,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 5,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "04:00",
				"end_hour": "04:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 14400,
				"end_time": 17999,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 6,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "05:00",
				"end_hour": "05:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 18000,
				"end_time": 21599,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 7,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "06:00",
				"end_hour": "06:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 21600,
				"end_time": 25199,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 8,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "07:00",
				"end_hour": "07:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 25200,
				"end_time": 28799,
				"expect_num": 30,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 9,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "08:00",
				"end_hour": "08:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 28800,
				"end_time": 32399,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 10,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "09:00",
				"end_hour": "09:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 32400,
				"end_time": 35999,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 11,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "10:00",
				"end_hour": "10:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 36000,
				"end_time": 39599,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 12,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "11:00",
				"end_hour": "11:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 39600,
				"end_time": 43199,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 13,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "12:00",
				"end_hour": "12:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 43200,
				"end_time": 46799,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 14,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "13:00",
				"end_hour": "13:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 46800,
				"end_time": 50399,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 15,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "14:00",
				"end_hour": "14:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 50400,
				"end_time": 53999,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 16,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "15:00",
				"end_hour": "15:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 54000,
				"end_time": 57599,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 17,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "16:00",
				"end_hour": "16:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 57600,
				"end_time": 61199,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 18,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "17:00",
				"end_hour": "17:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 61200,
				"end_time": 64799,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 19,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "18:00",
				"end_hour": "18:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 64800,
				"end_time": 68399,
				"expect_num": 0,
				"status": 1,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-27 09:44:56",
				"deleted_at": null
			},
			{
				"id": 20,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "19:00",
				"end_hour": "19:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 68400,
				"end_time": 71999,
				"expect_num": 0,
				"status": 0,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-26 17:57:34",
				"deleted_at": null
			},
			{
				"id": 21,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "20:00",
				"end_hour": "20:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 72000,
				"end_time": 75599,
				"expect_num": 0,
				"status": 0,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-26 17:57:34",
				"deleted_at": null
			},
			{
				"id": 22,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "21:00",
				"end_hour": "21:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 75600,
				"end_time": 79199,
				"expect_num": 0,
				"status": 0,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-26 17:57:34",
				"deleted_at": null
			},
			{
				"id": 23,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "22:00",
				"end_hour": "22:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 79200,
				"end_time": 82799,
				"expect_num": 0,
				"status": 0,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-26 17:57:34",
				"deleted_at": null
			},
			{
				"id": 24,
				"uniacid": 1,
				"store_id": 35,
				"start_hour": "23:00",
				"end_hour": "23:59",
				"show_start_hour": "",
				"show_end_hour": "",
				"start_time": 82800,
				"end_time": 86399,
				"expect_num": 0,
				"status": 0,
				"created_at": "2024-03-26 17:57:34",
				"updated_at": "2024-03-26 17:57:34",
				"deleted_at": null
			}
		]
	}
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
setting.expect_days int 可提前预约天数
setting.start_hour string 开始工作时间,只能为整点,比如01:00
setting.end_hour string 结束工作时间,只能为59分,比如16:59
expect_list[start_hour] string 时间段开始时间,比如01:00
expect_list[end_hour] string 时间段结束时间,比如01:59
expect_list[expect_num] int 时间段可预约人数

备注:

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