package model // CREATE TABLE "photo_studio_shoot_order" ( // "id" INTEGER NOT NULL, // "pid" INTEGER NOT NULL, // "customer_id" INTEGER NOT NULL, // "customer_name" TEXT NOT NULL, // "status" INTEGER NOT NULL, // "order_id" INTEGER NOT NULL, // "digital_order_id" INTEGER NOT NULL, // "digital_type" INTEGER NOT NULL, // "cover_path" TEXT NOT NULL, // "cover_rotate_deg" INTEGER NOT NULL, // "shoot_at_count" INTEGER NOT NULL, // "shoot_done_count" INTEGER NOT NULL, // "upload_cover_count" INTEGER NOT NULL, // "upload_highmode_count" INTEGER NOT NULL, // "upload_yuv_count" INTEGER NOT NULL, // "first_shoot_at" DATETIME NULL, // "first_shoot_done_at" DATETIME NULL, // "last_shoot_at" DATETIME NULL, // "last_shoot_done_at" DATETIME NULL, // "check_status" INTEGER NOT NULL, // "check_fail_reason" TEXT NOT NULL, // "check_at" DATETIME NULL, // "shop_id" INTEGER NOT NULL, // "eq_id" INTEGER NOT NULL, // "master_ver" TEXT NOT NULL, // "eq_type" INTEGER NOT NULL, // "created_at" DATETIME NULL, // "upload_done_at" DATETIME NULL, // "minipreview_upload_done_at" DATETIME NULL, // "updated_at" DATETIME NULL, // "is_privary" INTEGER NOT NULL, // "cancel_at" DATETIME NULL, // PRIMARY KEY ("id") // ); type AddData struct { Pid int `json:"pid"` CustomerId int `json:"customer_id"` CustomerName string `json:"customer_name"` Status int `json:"status"` OrderId int `json:"order_id"` DigitalOrderId int `json:"digital_order_id"` DigitalType int `json:"digital_type"` CoverPath string `json:"cover_path"` CoverRotateDeg int `json:"cover_rotate_deg"` ShootAtCount int `json:"shoot_at_count"` ShootDoneCount int `json:"shoot_done_count"` UploadCoverCount int `json:"upload_cover_count"` UploadHighmodeCount int `json:"upload_highmode_count"` UploadYuvCount int `json:"upload_yuv_count"` FirstShootAt string `json:"first_shoot_at"` FirstShootDoneAt string `json:"first_shoot_done_at"` LastShootAt string `json:"last_shoot_at"` LastShootDoneAt string `json:"last_shoot_done_at"` CheckStatus int `json:"check_status"` CheckFailReason string `json:"check_fail_reason"` CheckAt string `json:"check_at"` ShopId int `json:"shop_id"` EqId int `json:"eq_id"` MasterVer string `json:"master_ver"` EqType int `json:"eq_type"` CreatedAt string `json:"created_at"` UploadDoneAt string `json:"upload_done_at"` MinipreviewUploadDoneAt string `json:"minipreview_upload_done_at"` UpdatedAt string `json:"updated_at"` IsPrivary int `json:"is_privary"` CancelAt string `json:"cancel_at"` } type Data struct { Id int `json:"id"` Pid int `json:"pid"` CustomerId int `json:"customer_id"` CustomerName string `json:"customer_name"` Status int `json:"status"` OrderId int `json:"order_id"` DigitalOrderId int `json:"digital_order_id"` DigitalType int `json:"digital_type"` CoverPath string `json:"cover_path"` CoverRotateDeg int `json:"cover_rotate_deg"` ShootAtCount int `json:"shoot_at_count"` ShootDoneCount int `json:"shoot_done_count"` UploadCoverCount int `json:"upload_cover_count"` UploadHighmodeCount int `json:"upload_highmode_count"` UploadYuvCount int `json:"upload_yuv_count"` FirstShootAt string `json:"first_shoot_at"` FirstShootDoneAt string `json:"first_shoot_done_at"` LastShootAt string `json:"last_shoot_at"` LastShootDoneAt string `json:"last_shoot_done_at"` CheckStatus int `json:"check_status"` CheckFailReason string `json:"check_fail_reason"` CheckAt string `json:"check_at"` ShopId int `json:"shop_id"` EqId int `json:"eq_id"` MasterVer string `json:"master_ver"` EqType int `json:"eq_type"` CreatedAt string `json:"created_at"` UploadDoneAt string `json:"upload_done_at"` MinipreviewUploadDoneAt string `json:"minipreview_upload_done_at"` UpdatedAt string `json:"updated_at"` IsPrivary int `json:"is_privary"` CancelAt string `json:"cancel_at"` } type PageResData struct { Total int `json:"total"` Rows []AddData `json:"rows"` } type PageReqData struct { Page int `json:"page"` Size int `json:"size"` Pid int `json:"pid"` CustomerId int `json:"customer_id"` CustomerName string `json:"customer_name"` Status int `json:"status"` } type DeleteReqData struct { Pid int `json:"pid"` Id int `json:"id"` }