更新proto
This commit is contained in:
parent
61b7fedf0d
commit
5edac38772
@ -220,8 +220,8 @@ func CreateBundleBalance(data model.BundleBalance) error {
|
|||||||
|
|
||||||
func GetUsedRecord(req *bundle.GetUsedRecordListReq) (data []model.CostLog, total int64, err error) {
|
func GetUsedRecord(req *bundle.GetUsedRecordListReq) (data []model.CostLog, total int64, err error) {
|
||||||
session := app.ModuleClients.BundleDB.Model(&model.CostLog{})
|
session := app.ModuleClients.BundleDB.Model(&model.CostLog{})
|
||||||
if req.Title != "" {
|
if req.WorkTitle != "" {
|
||||||
session = session.Where("title = ?", req.Title)
|
session = session.Where("work_title like ?", "%"+req.WorkTitle+"%")
|
||||||
}
|
}
|
||||||
if req.Platform != 0 {
|
if req.Platform != 0 {
|
||||||
session = session.Where(fmt.Sprintf("JSON_CONTAINS(platform_ids,'%d')", req.Platform))
|
session = session.Where(fmt.Sprintf("JSON_CONTAINS(platform_ids,'%d')", req.Platform))
|
||||||
|
@ -707,7 +707,7 @@ message GetUsedRecordListReq{
|
|||||||
string account = 3;
|
string account = 3;
|
||||||
int32 platform = 4;
|
int32 platform = 4;
|
||||||
int32 type = 5;
|
int32 type = 5;
|
||||||
string title = 6;
|
string workTitle = 6;
|
||||||
int64 submitTimeStart = 7;
|
int64 submitTimeStart = 7;
|
||||||
int64 submitTimeEnd = 8;
|
int64 submitTimeEnd = 8;
|
||||||
int32 page = 9;
|
int32 page = 9;
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
|
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-triple v1.0.8
|
// - protoc-gen-go-triple v1.0.8
|
||||||
// - protoc v3.20.3
|
// - protoc v3.12.4
|
||||||
// source: pb/bundle.proto
|
// source: pb/bundle.proto
|
||||||
|
|
||||||
package bundle
|
package bundle
|
||||||
|
Loading…
Reference in New Issue
Block a user