12345678910111213141516171819202122232425262728293031323334 |
- package web
- import (
- "context"
- v1 "github.com/go-nunu/nunu-layout-advanced/api/v1"
- )
- type Log interface {
- EditLog(ctx context.Context, webId int64) error
- }
- // EditLog 修改日志配置
- func (s *aidedWebService) EditLog(ctx context.Context, webId int64) error {
- webConfigId, err := s.webForwardingRepository.GetWebConfigId(ctx, webId)
- if err != nil {
- return err
- }
- if err := s.cdn.EditWebLog(ctx, webConfigId, v1.WebLog{
- IsPrior: false,
- IsOn: true,
- Fields: []int64{1, 2, 6, 7},
- Status1: true,
- Status2: true,
- Status3: true,
- Status4: true,
- Status5: true,
- FirewallOnly: false,
- EnableClientClosed: false,
- }); err != nil {
- return err
- }
- return nil
- }
|