mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
feat: revert to the original behavior for wrapActionResponse() (#1021)
Revert: 340fbe135d
see: https://github.com/casdoor/casdoor-go-sdk/pull/36.
This commit is contained in:
@ -138,9 +138,9 @@ func (c *ApiController) SetSessionData(s *SessionData) {
|
||||
|
||||
func wrapActionResponse(affected bool) *Response {
|
||||
if affected {
|
||||
return &Response{Status: "ok", Msg: ""}
|
||||
return &Response{Status: "ok", Msg: "", Data: "Affected"}
|
||||
} else {
|
||||
return &Response{Status: "error", Msg: "this operation has no effect"}
|
||||
return &Response{Status: "ok", Msg: "", Data: "Unaffected"}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user