16 lines
333 B
Go
16 lines
333 B
Go
package info
|
|
|
|
import (
|
|
"context"
|
|
|
|
v1 "git.5iot.com/iotlcm-public/iotlcm-app/api/info/v1"
|
|
"git.5iot.com/iotlcm-public/iotlcm-app/internal/service"
|
|
)
|
|
|
|
func (c *ControllerV1) Info(ctx context.Context, req *v1.InfoReq) (res *v1.InfoRes, err error) {
|
|
info := service.Info().GetInfo()
|
|
return &v1.InfoRes{
|
|
InfoModel: info,
|
|
}, nil
|
|
}
|