17 lines
284 B
Go
17 lines
284 B
Go
package v1
|
|
|
|
import (
|
|
"fmt"
|
|
"git.inspur.com/sbg-jszt/cfn/cfn-schedule-agent/internal/controller"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func HelloWorld(c *gin.Context) {
|
|
str, ok := c.GetQuery("name")
|
|
if !ok {
|
|
str = "gin-layout"
|
|
}
|
|
|
|
controller.Success(c, fmt.Sprintf("hello %s", str))
|
|
}
|