diff --git a/handlers/client/mdresultnonlab.handlers.go b/handlers/client/mdresultnonlab.handlers.go new file mode 100644 index 0000000..470ce7c --- /dev/null +++ b/handlers/client/mdresultnonlab.handlers.go @@ -0,0 +1,26 @@ +package client_handlers + +import ( + "cpone/utils" + client_mdresultnonlab "cpone/views/client/mdresultnonlab" + + "github.com/labstack/echo/v4" +) + +type MdResultNonLabService interface { +} + +func NewMdResultNonLabHandler(us MdResultNonLabService) *MdResultNonLabHandler { + return &MdResultNonLabHandler{ + MdResultNonLabService: us, + } +} + +type MdResultNonLabHandler struct { + MdResultNonLabService MdResultNonLabService +} + +func (uh *MdResultNonLabHandler) ShowMdResultNonLab(c echo.Context) error { + helo := client_mdresultnonlab.Show() + return utils.View(c, helo) +} diff --git a/handlers/routes.go b/handlers/routes.go index c88c2c2..b3b0cc4 100644 --- a/handlers/routes.go +++ b/handlers/routes.go @@ -96,4 +96,8 @@ func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) { lhargasingle := client_services.NewServicesMdHargaSingle(appStore) lhhargasingle := client_handlers.NewMdHargaSingleHandler(lhargasingle) public.GET("/md/hargasingle", lhhargasingle.ShowMdHargaSingle) + + lresultnonlab := client_services.NewServicesMdResultNonLab(appStore) + lhresultnonlab := client_handlers.NewMdResultNonLabHandler(lresultnonlab) + public.GET("/md/resultnonlab", lhresultnonlab.ShowMdResultNonLab) } diff --git a/services/client/mdresultnonlab.services.go b/services/client/mdresultnonlab.services.go new file mode 100644 index 0000000..fee0eb6 --- /dev/null +++ b/services/client/mdresultnonlab.services.go @@ -0,0 +1,15 @@ +package client_services + +import "cpone/db" + +type ServicesMdResultNonLab struct { + MdResultNonLabStore db.AppStore +} + +func NewServicesMdResultNonLab(uStore db.AppStore) *ServicesMdResultNonLab { + + return &ServicesMdResultNonLab{ + + MdResultNonLabStore: uStore, + } +} diff --git a/views/client/mdresultnonlab/mdresultnonlab.templ b/views/client/mdresultnonlab/mdresultnonlab.templ new file mode 100644 index 0000000..4577f32 --- /dev/null +++ b/views/client/mdresultnonlab/mdresultnonlab.templ @@ -0,0 +1,40 @@ +package client_mdresultnonlab + +import ( + "cpone/component/under_development" + "cpone/layout" +) + +templ Content() { +
+ @under_development.UnderDevelopment() +
+} + +templ Css() { + +} + +templ Js() { +} + +templ Show() { + @layout.PlaygroundLayout("Client Md Result Non Lab", Css(), Js()) { + @Content() + } +} diff --git a/views/client/mdresultnonlab/mdresultnonlab_templ.go b/views/client/mdresultnonlab/mdresultnonlab_templ.go new file mode 100644 index 0000000..2c5af4f --- /dev/null +++ b/views/client/mdresultnonlab/mdresultnonlab_templ.go @@ -0,0 +1,131 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.2.663 +package client_mdresultnonlab + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import "context" +import "io" +import "bytes" + +import ( + "cpone/component/under_development" + "cpone/layout" +) + +func Content() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = under_development.UnderDevelopment().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Css() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var2 := templ.GetChildren(ctx) + if templ_7745c5c3_Var2 == nil { + templ_7745c5c3_Var2 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Js() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var3 := templ.GetChildren(ctx) + if templ_7745c5c3_Var3 == nil { + templ_7745c5c3_Var3 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +} + +func Show() templ.Component { + return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var4 := templ.GetChildren(ctx) + if templ_7745c5c3_Var4 == nil { + templ_7745c5c3_Var4 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var5 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) + if !templ_7745c5c3_IsBuffer { + templ_7745c5c3_Buffer = templ.GetBuffer() + defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) + } + templ_7745c5c3_Err = Content().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer) + } + return templ_7745c5c3_Err + }) + templ_7745c5c3_Err = layout.PlaygroundLayout("Client Md Result Non Lab", Css(), Js()).Render(templ.WithChildren(ctx, templ_7745c5c3_Var5), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if !templ_7745c5c3_IsBuffer { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) + } + return templ_7745c5c3_Err + }) +}