@@ -25,7 +25,7 @@ func {{.HandlerName}}(svcCtx *svc.ServiceContext) http.HandlerFunc {
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
- {{if .HasResp}}httpx.OkJsonCtx(r.Context(), w, resp){{else}}httpx.Ok(w){{end}}
+ {{if .HasResp}}httpx.OkJsonCtx(r.Context(), w, resp){{else}}httpx.OkJsonCtx(r.Context(), w, nil){{end}}
}
@@ -27,7 +27,7 @@ func ChangePasswordHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
- httpx.Ok(w)
+ httpx.OkJsonCtx(r.Context(), w, nil)
@@ -19,7 +19,7 @@ func LogoutHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func UpdateSelfInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func DeleteDeptHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func UpdateDeptHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func RemoveMemberHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func UpdateMemberHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func UpdateProductHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func BindRolePermsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func DeleteRoleHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func UpdateRoleHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func BindRolesHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func SetUserPermsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func UpdateUserHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
@@ -26,7 +26,7 @@ func UpdateUserStatusHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {