2bbf42b741
Remove Agent Desk users, roles, login sessions, tokens, and local permission persistence. Expose the backend as an embeddable ai-agent module with host-provided subject lookup and operation authorization callbacks, and complete the frontend/backend repository split.
13 lines
276 B
Go
13 lines
276 B
Go
package httpx
|
|
|
|
import (
|
|
"code.tczkiot.com/wlw/ai-agent/internal/pkg/i18nx"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/mlogclub/simple/web"
|
|
)
|
|
|
|
func JsonErrorMsg(ctx *gin.Context, key string, args ...any) *web.JsonResult {
|
|
return web.JsonErrorMsg(i18nx.T(ctx, key, args...))
|
|
}
|