package test import ( "ai_scheduler/internal/entitys" "encoding/json" "testing" ) func Test_task(t *testing.T) { var c entitys.TaskConfig config := `{"param": {"type": "object", "required": ["number"], "properties": {"number": {"type": "string", "description": "订单编号/流水号"}}}, "request": {"url": "http://www.baidu.com/${number}", "headers": {"Authorization": "${authorization}"}, "method": "GET"}}` err := json.Unmarshal([]byte(config), &c) t.Log(err) }