package model import ( "cu-helper/cus-eng-con-sys/cryptokit" "reflect" ) /* 1、/zjgd/frm/acceptanceComfirmController/toAcceptanceComfirm?businessKey=ig0+wuJz1ydtzu4VbmlXigelzjrHpK2M95FWj1QqFZhIXAPC/wQsSLtbQzJMombk&processInstanceId=hOVgJWbcGMSpwlAyOahXOQ==&taskDefinitionKey=TbtfJ6chgqzgSldk3ONCqQ==&taskId=RjahQdQO070+0msrB5z0rQ==&startLink=Jy0nsEWMSdJA3lqME93vgA==&endLink=Jy0nsEWMSdJA3lqME93vgA==&taskflag=facpUhYPtTztlU3uwUpNpA==&ranstr=4rUNDFPWHZwTW36OfKVg1jT7bnoF1dg4/dR2wgtzWnQ=×tamp=1RhySb/bDJGzULZTDF2g4Q==&_=1720262226902 2、/zjgd/frm/actInfoController/projectStartComplete?businessKey=DoLO5Y/F9pkgmALbPSU8rlHfaNzXpiRWdT98hrInpaRO+8vaRxr/2ddXfbeiQqqd&processInstanceId=/CtSSHICrOyDQ5MYbA7O4Q==&taskDefinitionKey=0fWv7DH6DyHIngAE9h1dVg==&taskId=ipKsfqbJ75WL3G9WtXfA4A==&startLink=HVQiIQoJG8cDVmk6wqprNQ==&endLink=HVQiIQoJG8cDVmk6wqprNQ==&taskflag=ubYYOtYEotcKeG8V/cZ0GQ==&ranstr=uhLtA3EL1Bguyo/w+S3ntt4YY+mjjw+ZiVz91XtG9IU=×tamp=dLnP+fNg/EQ11o3Kyf2qVA==&_=1766632541443 */ /* 用途 1、/zjgd/frm/acceptanceController/udpateAccInfo.action时入参使用 2、/zjgd/frm/actInfoController/saveActInfo时入参使用 */ type CommonFormGetHtml struct { BusinessKey string `map:"businessKey"` ProcessInstanceId string `map:"processInstanceId"` TaskDefinitionKey string `map:"taskDefinitionKey"` TaskId string `map:"taskId"` StartLink string `map:"startLink"` EndLink string `map:"endLink"` TaskFlag string `map:"taskflag"` Ranstr string `map:"ranstr"` Timestamp string `map:"timestamp"` TimestampPro string `map:"_"` //工建原始请求key就这样 } func NewCommonFormGetHtml(businessKey, processInstId, taskDefinitionKey, taskId string) *CommonFormGetHtml { toAcceptanceConfirm := new(CommonFormGetHtml) toAcceptanceConfirm.BusinessKey = businessKey toAcceptanceConfirm.ProcessInstanceId = processInstId toAcceptanceConfirm.TaskDefinitionKey = taskDefinitionKey toAcceptanceConfirm.TaskId = taskId //等于id toAcceptanceConfirm.StartLink = "false" toAcceptanceConfirm.EndLink = "false" toAcceptanceConfirm.TaskFlag = "db" toAcceptanceConfirm.Ranstr = cryptokit.RandomStr(true, 10, 32) toAcceptanceConfirm.Timestamp = cryptokit.GetTimeStamp() toAcceptanceConfirm.encrypt() //这个最终不加密 toAcceptanceConfirm.TimestampPro = cryptokit.GetTimeStamp() return toAcceptanceConfirm } func (th *CommonFormGetHtml) encrypt() { v := reflect.ValueOf(th).Elem() for i := 0; i < v.NumField(); i++ { field := v.Field(i) if field.CanSet() { field.SetString(cryptokit.Encrypt(field.String())) } } }