package system

import (
	"context"
	"server/internal/model"
	"server/internal/service"

	"server/api/system/v1"
)

func (c *ControllerV1) SystemSave(ctx context.Context, req *v1.SystemSaveReq) (res *v1.SystemSaveRes, err error) {
	return nil, service.System().Save(ctx, &model.SystemSaveInput{
		Key:   req.Key,
		Value: req.Value,
	})
}
