Merge branch 'develop' of git.ailuowan.com:zzw/lone-services into develop
CI / changes (push) Successful in 1m58s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / aiserver (push) Successful in 1s
CI / analysis (push) Successful in 40s
CI / bff (push) Successful in 19s
CI / chore (push) Successful in 1s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 1s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / water (push) Successful in 1s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 1s

This commit is contained in:
zzw
2026-11-02 10:35:10 +08:00
3 changed files with 3 additions and 3 deletions
@@ -39,7 +39,7 @@ func (l *AddWarningLogic) AddWarning(in *water.AddWarningRequest) (*water.Respon
return l.fail(utils.ErrorNoLoginInfo) return l.fail(utils.ErrorNoLoginInfo)
} }
aTime, _ := utils.ParseDateOnly(in.Time) aTime, _ := utils.ParseDateOnly(in.Time)
info := dao.UsersCreate{ info := dao.WarningCreate{
HostCode: in.HostCode, HostCode: in.HostCode,
Content: in.Content, Content: in.Content,
Type: in.Type, Type: in.Type,
@@ -29,7 +29,7 @@ func NewWarningStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *War
} }
} }
// 状态 // WarningStatus 状态
func (l *WarningStatusLogic) WarningStatus(in *water.WarningStatusRequest) (*water.Response, error) { func (l *WarningStatusLogic) WarningStatus(in *water.WarningStatusRequest) (*water.Response, error) {
var v validator.WarningStatusValidator var v validator.WarningStatusValidator
if fail := l.checkParams(in, &v); fail != nil { if fail := l.checkParams(in, &v); fail != nil {
+1 -1
View File
@@ -18,6 +18,6 @@ func (m WarningModel) Init() WarningModel {
return m return m
} }
func (m WarningModel) Create(data *dao.UsersCreate) error { func (m WarningModel) Create(data *dao.WarningCreate) error {
return m.Base.Create(data) return m.Base.Create(data)
} }