mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-11 19:00:20 +08:00
bug fix
This commit is contained in:
@@ -20,13 +20,15 @@ func (p *pushApi) GetPushById(ctx *gin.Context) {
|
||||
rOk(ctx, "Query successful!", repository.PushRepository.GetPushConfigById(id))
|
||||
}
|
||||
|
||||
func (p *pushApi) AddPushConfig(ctx *gin.Context, req model.Push) {
|
||||
func (p *pushApi) AddPushConfig(ctx *gin.Context) {
|
||||
req := bind[model.Push](ctx)
|
||||
err := repository.PushRepository.AddPushConfig(req)
|
||||
errCheck(ctx, err != nil, err)
|
||||
rOk(ctx, "Operation successful!", nil)
|
||||
}
|
||||
|
||||
func (p *pushApi) UpdatePushConfig(ctx *gin.Context, req model.Push) {
|
||||
func (p *pushApi) UpdatePushConfig(ctx *gin.Context) {
|
||||
req := bind[model.Push](ctx)
|
||||
err := repository.PushRepository.UpdatePushConfig(req)
|
||||
errCheck(ctx, err != nil, err)
|
||||
rOk(ctx, "Operation successful!", nil)
|
||||
|
Reference in New Issue
Block a user