|
|
@@ -51,8 +51,8 @@ func (c *ArtCatController) GetById(artCatId int64) *JsonResult {
|
|
|
}
|
|
|
|
|
|
func (c *ArtCatController) Create() *JsonResult {
|
|
|
- ocId := c.GetCurOcId()
|
|
|
- userId := c.GetCurUserId()
|
|
|
+ ocId := c.GetCurOcId()
|
|
|
+ userId := c.GetCurUserId()
|
|
|
|
|
|
artCat := &datamodel.ArtCat{}
|
|
|
|
|
|
@@ -70,8 +70,8 @@ func (c *ArtCatController) Create() *JsonResult {
|
|
|
}
|
|
|
|
|
|
func (c *ArtCatController) Update() *JsonResult {
|
|
|
- ocId := c.GetCurOcId()
|
|
|
- userId := c.GetCurUserId()
|
|
|
+ ocId := c.GetCurOcId()
|
|
|
+ userId := c.GetCurUserId()
|
|
|
|
|
|
artCat := &datamodel.ArtCat{}
|
|
|
if err := c.Ctx.ReadJSON(artCat); err != nil {
|
|
|
@@ -88,12 +88,12 @@ func (c *ArtCatController) Update() *JsonResult {
|
|
|
}
|
|
|
|
|
|
func (c *ArtCatController) DeleteByID(artCatId int64) *JsonResult {
|
|
|
- ocId := c.GetCurOcId()
|
|
|
+ ocId := c.GetCurOcId()
|
|
|
userId := c.GetCurUserId()
|
|
|
|
|
|
m := make(map[string]interface{})
|
|
|
- m["ocId"] = ocId
|
|
|
- m["artCatId"] = artCatId
|
|
|
+ m["ocId"] = ocId
|
|
|
+ m["artCatId"] = artCatId
|
|
|
m["deletedBy"] = userId
|
|
|
if err := c.Service.Delete(m); err != nil {
|
|
|
return ResultErr(err.Error(), nil)
|