格式化提交时间
This commit is contained in:
parent
9b37dab44f
commit
1112d253ee
@ -126,6 +126,9 @@ func GetUsedRecord(req *bundle.GetUsedRecordListReq) (*bundle.GetUsedRecordListR
|
|||||||
resp.Data = lo.Map(data, func(m model.CostLogPo, _ int) *bundle.WorkCastItem {
|
resp.Data = lo.Map(data, func(m model.CostLogPo, _ int) *bundle.WorkCastItem {
|
||||||
result := &bundle.WorkCastItem{}
|
result := &bundle.WorkCastItem{}
|
||||||
copier.Copy(result, &m)
|
copier.Copy(result, &m)
|
||||||
|
loc, _ := time.LoadLocation("Asia/Shanghai")
|
||||||
|
t := time.Unix(m.ArtistConfirmedTime, 0).In(loc)
|
||||||
|
result.ArtistConfirmedTime = t.Format(time.DateTime)
|
||||||
return result
|
return result
|
||||||
})
|
})
|
||||||
return resp, nil
|
return resp, nil
|
||||||
|
@ -735,7 +735,7 @@ message WorkCastItem{
|
|||||||
string operatorName = 13; // 操作人名称
|
string operatorName = 13; // 操作人名称
|
||||||
string operatorPhone = 14; // 操作人手机号
|
string operatorPhone = 14; // 操作人手机号
|
||||||
uint32 status = 15; // 1 有效 2 失效
|
uint32 status = 15; // 1 有效 2 失效
|
||||||
uint32 artistConfirmedTime = 16; // 艺人确认时间
|
string artistConfirmedTime = 16; // 艺人确认时间
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetImageWorkDetailReq {
|
message GetImageWorkDetailReq {
|
||||||
|
@ -6315,7 +6315,7 @@ type WorkCastItem struct {
|
|||||||
OperatorName string `protobuf:"bytes,13,opt,name=operatorName,proto3" json:"operatorName,omitempty"` // 操作人名称
|
OperatorName string `protobuf:"bytes,13,opt,name=operatorName,proto3" json:"operatorName,omitempty"` // 操作人名称
|
||||||
OperatorPhone string `protobuf:"bytes,14,opt,name=operatorPhone,proto3" json:"operatorPhone,omitempty"` // 操作人手机号
|
OperatorPhone string `protobuf:"bytes,14,opt,name=operatorPhone,proto3" json:"operatorPhone,omitempty"` // 操作人手机号
|
||||||
Status uint32 `protobuf:"varint,15,opt,name=status,proto3" json:"status,omitempty"` // 1 有效 2 失效
|
Status uint32 `protobuf:"varint,15,opt,name=status,proto3" json:"status,omitempty"` // 1 有效 2 失效
|
||||||
ArtistConfirmedTime uint32 `protobuf:"varint,16,opt,name=artistConfirmedTime,proto3" json:"artistConfirmedTime,omitempty"` // 艺人确认时间
|
ArtistConfirmedTime string `protobuf:"bytes,16,opt,name=artistConfirmedTime,proto3" json:"artistConfirmedTime,omitempty"` // 艺人确认时间
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkCastItem) Reset() {
|
func (x *WorkCastItem) Reset() {
|
||||||
@ -6455,11 +6455,11 @@ func (x *WorkCastItem) GetStatus() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *WorkCastItem) GetArtistConfirmedTime() uint32 {
|
func (x *WorkCastItem) GetArtistConfirmedTime() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.ArtistConfirmedTime
|
return x.ArtistConfirmedTime
|
||||||
}
|
}
|
||||||
return 0
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetImageWorkDetailReq struct {
|
type GetImageWorkDetailReq struct {
|
||||||
@ -9031,7 +9031,7 @@ var file_pb_bundle_proto_rawDesc = []byte{
|
|||||||
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06,
|
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06,
|
||||||
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74,
|
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74,
|
||||||
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x10, 0x20,
|
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x10, 0x20,
|
||||||
0x01, 0x28, 0x0d, 0x52, 0x13, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
0x01, 0x28, 0x09, 0x52, 0x13, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
||||||
0x72, 0x6d, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x49,
|
0x72, 0x6d, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x2f, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x49,
|
||||||
0x6d, 0x61, 0x67, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65,
|
0x6d, 0x61, 0x67, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65,
|
||||||
0x71, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x71, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
|
Loading…
Reference in New Issue
Block a user