1
This commit is contained in:
parent
84456dbb6a
commit
ba31581e31
@ -13,7 +13,7 @@ type ArtistInfoProvider struct {
|
||||
artistInfoLogic *logic.ArtistInfo
|
||||
}
|
||||
|
||||
func (a *ArtistInfoProvider) registerUser(ctx context.Context, req *artistinfo.RegisterUserRequest) (rep *artistinfo.RegisterUserRespond, err error) {
|
||||
func (a *ArtistInfoProvider) RegisterUser(ctx context.Context, req *artistinfo.RegisterUserRequest) (rep *artistinfo.RegisterUserRespond, err error) {
|
||||
fmt.Println("第一处")
|
||||
// backup := &artistInfo.GetUserInfoRespond{}
|
||||
if rep, err = a.artistInfoLogic.RegisterUser(req); err != nil {
|
||||
@ -57,3 +57,12 @@ func (a *ArtistInfoProvider) CheckUserLock(ctx context.Context, req *artistinfo.
|
||||
}
|
||||
return rep, nil
|
||||
}
|
||||
|
||||
func (a *ArtistInfoProvider) ArtistSupplyList(ctx context.Context, req *artistinfo.ArtistSupplyListRequest) (rep *artistinfo.ArtistSupplyListRespond, err error) {
|
||||
fmt.Println("第一处")
|
||||
// backup := &artistInfo.GetUserInfoRespond{}
|
||||
if rep, err = a.artistInfoLogic.ArtistSupplyList(req); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return rep, nil
|
||||
}
|
||||
|
@ -60,3 +60,10 @@ func (a *ArtWorkProvider) UploadArtwork(ctx context.Context, req *artwork.Upload
|
||||
}
|
||||
return rep, nil
|
||||
}
|
||||
func (a *ArtWorkProvider) ApproveArtwork(ctx context.Context, req *artwork.ApproveArtworkRequest) (rep *artwork.ApproveArtworkRespond, err error) {
|
||||
fmt.Println("第一处")
|
||||
if rep, err = a.artWorkLogic.ApproveArtwork(req); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return rep, nil
|
||||
}
|
@ -89,6 +89,35 @@ func FinishVerify(req *artistinfo.FinishVerifyRequest) (rep *artistinfo.FinishVe
|
||||
return rep, nil
|
||||
}
|
||||
|
||||
func ArtistSupplyList(req *artistinfo.ArtistSupplyListRequest) (rep *artistinfo.ArtistSupplyListRespond, err error) {
|
||||
var artistList = make([]artistinfo.ArtistArtworkSupplyListResponseData, 0)
|
||||
var args []interface{}
|
||||
sql := `select cc.* from (SELECT a.id,a.name,a.pen_name,a.is_import,a.tel_num,a.sex,a.age,b.id_num,a.invited_code,a.certificate_num,a.con_address,b.idcard_front,b.idcard_back,a.photo,a.video,a.created_at,a.updated_at,a.is_lock,a.certificate_img,min(d.created_at) as dd from user a inner join real_name b on a.real_name_id = b.id left join bank c on a.id = c.user_id left join supply_info d on a.id = d.user_id where (d.types = 1 or d.types = 4 or d.types = 2 or d.types = 3 or d.types =6) and a.is_real_name = true `
|
||||
sqlWhere := ` `
|
||||
sqlGroup := ` group by a.id order by min(d.created_at) desc ) cc inner join supply_info f where dd >0 and dd = f.created_at and cc.id = f.user_id group by cc.id,dd `
|
||||
var count uint64
|
||||
tx := db.DB.Raw("select count(*) from (" + sql + sqlWhere + sqlGroup + ") cc").Scan(&count)
|
||||
if tx.Error != nil {
|
||||
zap.L().Error("get user info err", zap.Error(tx.Error))
|
||||
err = errors.New(m.ERROR_SELECT)
|
||||
return nil, err
|
||||
}
|
||||
rep.Count = count
|
||||
var sqlLimit = " limit ?,? "
|
||||
args = append(args, (req.Page-1)*req.PageSize)
|
||||
args = append(args, req.PageSize)
|
||||
err = db.DB.Raw(sql + sqlWhere + sqlGroup + sqlLimit).Scan(&artistList).Error
|
||||
if err != nil {
|
||||
zap.L().Error("get user info err", zap.Error(tx.Error))
|
||||
err = errors.New(m.ERROR_SELECT)
|
||||
return nil, err
|
||||
}
|
||||
for _, v := range artistList {
|
||||
rep.Data = append(rep.Data, &v)
|
||||
}
|
||||
return rep, nil
|
||||
}
|
||||
|
||||
// // Update 用户修改信息
|
||||
// func Create(reqs *artist.CreateUserInfoRequest) (rep *artist.CreateUserInfoRespond, err error) {
|
||||
// req := reqs.Data
|
||||
|
@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
|
||||
"github.com/alibaba/sentinel-golang/logging"
|
||||
"github.com/fonchain-artistserver/cmd/model"
|
||||
"github.com/fonchain-artistserver/pb/artwork"
|
||||
db "github.com/fonchain-artistserver/pkg/db"
|
||||
@ -44,6 +45,85 @@ func ArtworkAdd(res *artwork.ArtworkAddRequest) (req *artwork.ArtworkAddRespond,
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Get 用户修改信息
|
||||
func (service UserUpdateInfoService) Update(id uint) serializer.Response {
|
||||
var user model.User
|
||||
code := e.SUCCESS
|
||||
//找到用户
|
||||
err := model.DB.First(&user, "id = ?", id).Error
|
||||
if err != nil {
|
||||
logging.Info(err)
|
||||
code = e.ErrorDatabase
|
||||
return serializer.Response{
|
||||
Status: 400,
|
||||
Msg: e.GetMsg(code),
|
||||
Error: err.Error(),
|
||||
}
|
||||
}
|
||||
user.PenName = service.PenName
|
||||
user.Photo = service.Photo
|
||||
user.Video = service.Video
|
||||
user.CertificateImg = service.CertificateImg
|
||||
conAddessByte, err := json.Marshal(service.ConAddress)
|
||||
if err != nil {
|
||||
logging.Info(err)
|
||||
code = e.ErrorDatabase
|
||||
return serializer.Response{
|
||||
Status: 400,
|
||||
Msg: e.GetMsg(code),
|
||||
Error: err.Error(),
|
||||
}
|
||||
}
|
||||
user.ConAddress = string(conAddessByte)
|
||||
user.WxAccount = service.WxAccount
|
||||
user.CertificateNum = service.CertificateNum
|
||||
err = model.DB.Save(&user).Error
|
||||
if err != nil {
|
||||
logging.Info(err)
|
||||
code = e.ErrorDatabase
|
||||
return serializer.Response{
|
||||
Status: 400,
|
||||
Msg: e.GetMsg(code),
|
||||
Error: err.Error(),
|
||||
}
|
||||
}
|
||||
var realName model.RealName
|
||||
err = model.DB.First(&realName, "id = ?", user.RealNameID).Error
|
||||
if err != nil {
|
||||
logging.Info(err)
|
||||
code = e.ErrorDatabase
|
||||
return serializer.Response{
|
||||
Status: 400,
|
||||
Msg: e.GetMsg(code),
|
||||
Error: err.Error(),
|
||||
}
|
||||
}
|
||||
realName.IdcardBack = service.IdCardBack
|
||||
realName.IdcardFront = service.IdCardFront
|
||||
err = model.DB.Save(&realName).Error
|
||||
if err != nil {
|
||||
logging.Info(err)
|
||||
code = e.ErrorDatabase
|
||||
return serializer.Response{
|
||||
Status: 400,
|
||||
Msg: e.GetMsg(code),
|
||||
Error: err.Error(),
|
||||
}
|
||||
}
|
||||
return serializer.Response{
|
||||
Status: code,
|
||||
Data: serializer.BuildUser(user),
|
||||
Msg: e.GetMsg(code),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
func CheckUserLock(id int64) (err error) {
|
||||
var user model.User
|
||||
if err = db.DB.Where("id = ? ", id).First(&user).Error; err != nil {
|
||||
@ -104,14 +184,30 @@ func DelArtwork(id int32) (err error) {
|
||||
|
||||
return
|
||||
}
|
||||
func ApproveArtwork(req *artwork.ApproveArtworkRequest)(rep *artwork.ApproveArtworkRespond,err error){
|
||||
|
||||
var artwork model.Artwork
|
||||
artwork.ID = int32(data.ID)
|
||||
var state int
|
||||
if req.IsApprove {
|
||||
state = 3
|
||||
} else {
|
||||
state = 4
|
||||
}
|
||||
if err = db.DB.Update(&artwork).Where("state = ?,remark = ?,remark2 = ?",state,req.Remark,req.Remark2).Error; err != nil {
|
||||
zap.L().Error("get artwork info err", zap.Error(err))
|
||||
err = errors.New(m.ERROR_SELECT)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
func GetArtworkList(req *artwork.GetArtworkListRequest) (rep *artwork.GetArtworkListRespond, err error) {
|
||||
rep = &artwork.GetArtworkListRespond{}
|
||||
var datas []*artwork.UpdateArtworkRequest
|
||||
|
||||
var artworkList []model.Artwork
|
||||
//找到用户
|
||||
if err = db.DB.Order("created_at desc").Where("artist_id = ?", req.ID).Find(&artworkList).Error; err != nil {
|
||||
//找到用户 p[]
|
||||
if err = db.DB.Order("created_at desc").Where("id = ?", req.Id).Find(&artworkList).Error; err != nil {
|
||||
zap.L().Error("get artwork info err", zap.Error(err))
|
||||
err = errors.New(m.ERROR_SELECT)
|
||||
return
|
||||
@ -122,7 +218,7 @@ func GetArtworkList(req *artwork.GetArtworkListRequest) (rep *artwork.GetArtwork
|
||||
var createAddressByte []string
|
||||
json.Unmarshal([]byte(artworkList[k].CreateAddress), &createAddressByte)
|
||||
data.ID = uint64(artworkList[k].ID)
|
||||
data.ArtistId = uint64(artworkList[k].ArtistId)
|
||||
// data.ArtistId = uint64(artworkList[k].ArtistId)
|
||||
data.Name = artworkList[k].Name
|
||||
data.ModelYear = artworkList[k].ModelYear
|
||||
data.Photo = artworkList[k].Photo
|
||||
@ -157,7 +253,7 @@ func GetArtwork(id int32) (rep *artwork.GetArtworkRespond, err error) {
|
||||
var createAddressByte []string
|
||||
json.Unmarshal([]byte(artworkRes.CreateAddress), &createAddressByte)
|
||||
rep.ID = uint64(artworkRes.ID)
|
||||
rep.ArtistId = uint64(artworkRes.ArtistId)
|
||||
// rep.ArtistId = uint64(artworkRes.ArtistId)
|
||||
rep.Name = artworkRes.Name
|
||||
rep.ModelYear = artworkRes.ModelYear
|
||||
rep.Photo = artworkRes.Photo
|
||||
@ -177,18 +273,95 @@ func GetArtwork(id int32) (rep *artwork.GetArtworkRespond, err error) {
|
||||
|
||||
func UploadArtwork(Id uint64) (err error) {
|
||||
var artwork model.Artwork
|
||||
if err = db.DB.First(&artwork, "id = ?", Id).Error; err != nil {
|
||||
if err = db.DB.Find(&artwork, "id = ?", Id).Error; err != nil {
|
||||
zap.L().Error("get artwork info err", zap.Error(err))
|
||||
err = errors.New(m.ERROR_SELECT)
|
||||
return
|
||||
}
|
||||
|
||||
artwork.State = 1
|
||||
|
||||
if err = db.DB.Save(&artwork).Error; err != nil {
|
||||
zap.L().Error("save artwork info err", zap.Error(err))
|
||||
zap.L().Error("save artwork info err", zap.Error(rr))
|
||||
err = errors.New(m.SAVE_ERROR)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func GetMgmtArtworkList(req *artwork.GetMgmtArtworkListRequest) (rep *artwork.GetMgmtArtworkListRespond, err error) {
|
||||
rep = &artwork.GetArtworkListRespond{}
|
||||
var datas []*artwork.UpdateArtworkRequest
|
||||
id, err := GetUserId(req.ArtistId)
|
||||
if err != nil {
|
||||
zap.L().Error("get artwork info err", zap.Error(err))
|
||||
err = errors.New(m.ERROR_SELECT)
|
||||
return
|
||||
}
|
||||
var args []interface{}
|
||||
var sqlWhere = " (state >=1 and state <=3) "
|
||||
if req.Name != "" {
|
||||
sqlWhere += ` and name like ? `
|
||||
args = append(args, "%"+req.Name+"%")
|
||||
}
|
||||
// if req.BatchId != 0 {
|
||||
// sqlWhere += `and c.batch_id = ? `
|
||||
// args = append(args, req.BatchId)
|
||||
// }
|
||||
if req.ArtistId != 0 {
|
||||
sqlWhere += ` artist_id = ? `
|
||||
args = append(args, id)
|
||||
}
|
||||
if req.State != 0 {
|
||||
sqlWhere += ` and state = ? `
|
||||
args = append(args, req.State)
|
||||
}
|
||||
//找到用户
|
||||
var artworkCount model.Artwork
|
||||
|
||||
tx = db.DB.Where(sqlWhere, args...).Count(&artworkCount)
|
||||
if tx.Error != nil {
|
||||
zap.L().Error("get artwork info err", zap.Error(err))
|
||||
err = errors.New(m.ERROR_SELECT)
|
||||
return
|
||||
}
|
||||
rep.Count = tx.
|
||||
var artworkList []model.Artwork
|
||||
//找到用户
|
||||
var sqlLimit = sqlWhere + " limit ?,? "
|
||||
args = append(args, (req.Page-1)*req.PageSize)
|
||||
args = append(args, req.Num)
|
||||
if err = db.DB.Order("created_at desc").Where(sqlWhere, args...).Find(&artworkList).Error; err != nil {
|
||||
zap.L().Error("get artwork info err", zap.Error(err))
|
||||
err = errors.New(m.ERROR_SELECT)
|
||||
return
|
||||
}
|
||||
for k, v := range artworkList {
|
||||
artworkList[k].CreateTime = v.CreatedAt.Format("2006-01-02")
|
||||
var data artwork.UpdateArtworkRequest
|
||||
var createAddressByte []string
|
||||
json.Unmarshal([]byte(artworkList[k].CreateAddress), &createAddressByte)
|
||||
data.Name = artworkList[k].Name
|
||||
data.ModelYear = artworkList[k].ModelYear
|
||||
data.Photo = artworkList[k].Photo
|
||||
data.ArtistPhoto = artworkList[k].ArtistPhoto
|
||||
data.CreateAt = artworkList[k].CreateTme
|
||||
data.NetworkTrace = artworkList[k].Netor
|
||||
data.Url = artworkList[k].Url
|
||||
data.State = uint64(artworkList[k].State)
|
||||
datas = append(datas, &data)
|
||||
}
|
||||
rep.Data = datas
|
||||
return
|
||||
}
|
||||
|
||||
func GetUserId(artistId string) (uint64, error) {
|
||||
var user model.User
|
||||
if err := db.DB.First(&user, "id = ? and deleted_at is null", id).Error; err != nil {
|
||||
|
||||
|
||||
err = errors.New(m.ERROR_SELECT)
|
||||
return 0, err
|
||||
}
|
||||
return user.ID, nil
|
||||
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ type IArtistInfo interface {
|
||||
UpdateRealName(req *artistinfo.UpdateRealNameRequest) (rep *artistinfo.UpdateRealNameRespond, err error)
|
||||
FinishVerify(req *artistinfo.FinishVerifyRequest) (rep *artistinfo.FinishVerifyRespond, err error)
|
||||
CheckUserLock(req *artistinfo.CheckUserLockRequest) (rep *artistinfo.CheckUserLockRespond, err error)
|
||||
ArtistSupplyList(req *artistinfo.ArtistSupplyListRequest) (rep *artistinfo.ArtistSupplyListRespond, err error)
|
||||
}
|
||||
|
||||
func NewArtistInfo() IArtistInfo {
|
||||
@ -48,3 +49,7 @@ func (a *ArtistInfo) CheckUserLock(req *artistinfo.CheckUserLockRequest) (rep *a
|
||||
err = dao.CheckUserLock(int64(req.ID))
|
||||
return
|
||||
}
|
||||
func (a *ArtistInfo) ArtistSupplyList(req *artistinfo.ArtistSupplyListRequest) (rep *artistinfo.ArtistSupplyListRespond, err error) {
|
||||
err = dao.ArtistSupplyList(int64(req.ID))
|
||||
return
|
||||
}
|
||||
|
@ -57,3 +57,9 @@ func (a *ArtWork) UploadArtwork(req *artwork.UploadArtworkRequest) (rep *artwork
|
||||
err = dao.UploadArtwork(req.ID)
|
||||
return
|
||||
}
|
||||
|
||||
func (a *ArtWork) ApproveArtwork(req *artwork.ApproveArtworkRequest) (rep *artwork.ApproveArtworkRespond, err error) {
|
||||
|
||||
err = dao.ApproveArtwork(req.ID)
|
||||
return
|
||||
}
|
||||
|
@ -3,11 +3,11 @@ mode = dev #正式prod #测试dev
|
||||
|
||||
[mysql]
|
||||
Db = mysql
|
||||
DbHost = 121.229.45.214
|
||||
DbHost = 172.16.100.99 #214
|
||||
DbPort = 9007
|
||||
DbUser = artuser
|
||||
DbPassWord = "C250PflXIWv2SQm8"
|
||||
DbName = artistmgmt
|
||||
DbArtist = artist
|
||||
|
||||
[redis]
|
||||
RedisDB = 2
|
||||
|
@ -3,17 +3,71 @@ dubbo:
|
||||
enable: true # default is true
|
||||
path: /metrics # default is /metrics
|
||||
port: 9091 # default is 9090
|
||||
namespace: dubboArtistInfo # default is dubbo 作为数据上报 metrics 的前缀
|
||||
namespace: dubboArtist # default is dubbo 作为数据上报 metrics 的前
|
||||
registries:
|
||||
demoZK:
|
||||
protocol: zookeeper
|
||||
timeout: 3s
|
||||
address: 127.0.0.1:2181
|
||||
# address: 127.0.0.1:2181
|
||||
# address: 121.229.45.214:9004
|
||||
# address: 114.218.158.24:2181
|
||||
address: 172.16.100.93:2181
|
||||
protocols:
|
||||
triple: #triple
|
||||
name: tri
|
||||
port: 20020
|
||||
# ip: 121.229.45.214
|
||||
port: 20004
|
||||
provider:
|
||||
services:
|
||||
ArtistInfoProvider:
|
||||
interface: com.fontree.microservices.common.ArtistInfo
|
||||
ArtistProvider:
|
||||
interface: com.fontree.microservices.common.Artist
|
||||
retries: 0
|
||||
filter: tps
|
||||
# token: "dubbo"
|
||||
# application: "1234"
|
||||
tps.limiter: method-service
|
||||
tps.limit.strategy: fixedWindow
|
||||
tps.limit.rejected.handler: DefaultValueHandler
|
||||
tps.limit.interval: 1000
|
||||
tps.limit.rate: 3
|
||||
warmup: 100 #预热时间
|
||||
logger:
|
||||
zap-config:
|
||||
level: info # 日志级别
|
||||
development: false
|
||||
disableCaller: false
|
||||
disableStacktrace: false
|
||||
encoding: "json"
|
||||
# zap encoder 配置
|
||||
encoderConfig:
|
||||
messageKey: "message"
|
||||
levelKey: "level"
|
||||
timeKey: "time"
|
||||
nameKey: "logger"
|
||||
callerKey: "caller"
|
||||
stacktraceKey: "stacktrace"
|
||||
lineEnding: ""
|
||||
levelEncoder: "capitalColor"
|
||||
timeEncoder: "iso8601"
|
||||
durationEncoder: "seconds"
|
||||
callerEncoder: "short"
|
||||
nameEncoder: ""
|
||||
EncodeTime: zapcore.TimeEncoderOfLayout("2006-01-02 15:04:05.000"),
|
||||
EncodeDuration: zapcore.SecondsDurationEncoder,
|
||||
outputPaths:
|
||||
- "stderr"
|
||||
errorOutputPaths:
|
||||
- "stderr"
|
||||
lumberjack-config:
|
||||
# 写日志的文件名称
|
||||
filename: "logs/artist_server.log"
|
||||
# 每个日志文件长度的最大大小,单位是 MiB。默认 100MiB
|
||||
maxSize: 10
|
||||
# 日志保留的最大天数(只保留最近多少天的日志)
|
||||
maxAge: 15
|
||||
# 只保留最近多少个日志文件,用于控制程序总日志的大小
|
||||
maxBackups: 10
|
||||
# 是否使用本地时间,默认使用 UTC 时间
|
||||
localTime: true
|
||||
# 是否压缩日志文件,压缩方法 gzip
|
||||
compress: false
|
243
main.go
Normal file
243
main.go
Normal file
@ -0,0 +1,243 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
DevImage string
|
||||
Image string
|
||||
Path string
|
||||
CmdFile string
|
||||
Doc string
|
||||
Env string
|
||||
}
|
||||
|
||||
var serviceMap = map[string]App{
|
||||
"account": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/account:3.1",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/account:2.1",
|
||||
Path: "D:\\project\\fonchain-account\\",
|
||||
CmdFile: "D:\\project\\fonchain-account\\Dockerfile",
|
||||
Doc: "D:\\project",
|
||||
},
|
||||
"seller": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/seller:3.1",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/seller:2.1",
|
||||
Path: "D:\\project\\seller-main\\",
|
||||
CmdFile: "D:\\project\\seller-main\\Dockerfile",
|
||||
Doc: "D:\\project",
|
||||
},
|
||||
"task": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/task:3.1",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/task:2.1",
|
||||
Path: "D:\\project\\fonchain-task_microservice\\",
|
||||
CmdFile: "D:\\project\\fonchain-task_microservice\\Dockerfile",
|
||||
Doc: "D:\\project",
|
||||
},
|
||||
"auth": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/auth:3.2",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/auth:2.2",
|
||||
Path: "D:\\project\\fonchain-auth\\",
|
||||
CmdFile: "D:\\project\\fonchain-auth\\Dockerfile",
|
||||
},
|
||||
"chain": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/chain:3.2",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/chain:2.2",
|
||||
Path: "D:\\project\\fontree-chain_microservice\\",
|
||||
CmdFile: "D:\\project\\fontree-chain_microservice\\Dockerfile",
|
||||
Doc: "D:\\project",
|
||||
},
|
||||
"mall": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/malltest:3.0",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/malltest:2.0",
|
||||
Path: "D:\\project\\fonchain-main_mall\\",
|
||||
CmdFile: "D:\\project\\fonchain-main_mall\\Dockerfile",
|
||||
Doc: "D:\\project",
|
||||
},
|
||||
"approval": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/approval:3.3",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/approval:2.3",
|
||||
Path: "D:\\project\\fonchain-approval\\",
|
||||
CmdFile: "D:\\project\\fonchain-approval\\Dockerfile",
|
||||
Doc: "D:\\project",
|
||||
},
|
||||
|
||||
"order": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/order:3.1",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/order:2.1",
|
||||
Path: "D:\\project\\fonchain-order\\",
|
||||
CmdFile: "D:\\project\\fonchain-order\\Dockerfile",
|
||||
Doc: "D:\\project",
|
||||
},
|
||||
"client": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/client:3.0",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/client:2.0",
|
||||
Path: "C:\\Users\\user054\\Documents\\fonchain-main\\",
|
||||
CmdFile: "C:\\Users\\user054\\Documents\\fonchain-main\\Dockerfile",
|
||||
},
|
||||
"server": {
|
||||
Image: "121.229.45.214:9006/main-server",
|
||||
DevImage: "121.229.45.214:9006/main-server",
|
||||
Path: "D:\\project\\fonchain-main\\",
|
||||
CmdFile: "D:\\project\\fonchain-main\\Dockerfile",
|
||||
Doc: "D:\\project",
|
||||
},
|
||||
|
||||
"shop_mall": {
|
||||
Image: "121.229.45.214:9006/shop-main-server",
|
||||
DevImage: "121.229.45.214:9006/shop-main-server",
|
||||
Path: "D:\\project\\shop-main\\",
|
||||
CmdFile: "D:\\project\\shop-main\\Dockerfile",
|
||||
Doc: "D:\\project",
|
||||
},
|
||||
"shop": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/shop:3.0",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/shop:2.0",
|
||||
Path: "D:\\project\\shop-main\\",
|
||||
CmdFile: "D:\\project\\shop-main\\Dockerfile",
|
||||
Doc: "D:\\project",
|
||||
},
|
||||
"artist": {
|
||||
Image: "registry.cn-hangzhou.aliyuncs.com/fontree/artistinfo:3.0",
|
||||
DevImage: "registry.cn-hangzhou.aliyuncs.com/fontree/artistinfo:2.0",
|
||||
Path: "D:\\code\\go\\src\\github.com\\fonchain\\fonchain-artistinfo\\",
|
||||
CmdFile: "D:\\code\\go\\src\\github.com\\fonchain\\fonchain-artistinfo\\Dockerfile",
|
||||
Doc: "D:\\code\\go\\src\\github.com\\fonchain",
|
||||
},
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
//查询命令所在目录,可用于判断操作系统中是否能用该命令
|
||||
//docker build -f ./Dockerfile -t xxx .
|
||||
//cmd中执行的命令:ffmpeg -i psg.flv test.mp4
|
||||
var name string
|
||||
var image string
|
||||
var env string
|
||||
var envDir string
|
||||
var appMap App
|
||||
|
||||
fmt.Println("1--2-")
|
||||
|
||||
flag.StringVar(&name, "n", "", "没有服务名称 auth approval account client")
|
||||
flag.StringVar(&envDir, "e", "", "没有使用的配置文件信息 auth approval account client")
|
||||
flag.Parse()
|
||||
|
||||
fmt.Printf("---------------执行项目%s,使用配置文件%s\n", name, envDir)
|
||||
_, ok := serviceMap[name]
|
||||
|
||||
if ok == false {
|
||||
fmt.Println("没有找对应项目项目")
|
||||
return
|
||||
}
|
||||
|
||||
appMap = serviceMap[name]
|
||||
if envDir == "test" {
|
||||
env = "conf\\" + envDir + "\\"
|
||||
image = appMap.DevImage
|
||||
} else if envDir == "prod" {
|
||||
env = "conf\\" + envDir + "\\"
|
||||
image = appMap.Image
|
||||
} else {
|
||||
fmt.Println("没有配置配置文件")
|
||||
return
|
||||
}
|
||||
|
||||
s, _ := GetAllFile(appMap.Path+env, []string{})
|
||||
fmt.Println(s)
|
||||
for _, t := range s {
|
||||
fmt.Println(t, path.Base(t))
|
||||
copyFile(t, appMap.Path+"conf\\"+path.Base(t))
|
||||
}
|
||||
|
||||
fmt.Println("----------------------------0 配置文件拷贝成功")
|
||||
|
||||
//构建
|
||||
var cmd *exec.Cmd
|
||||
|
||||
if appMap.Doc == "" {
|
||||
cmd = exec.Command("docker", "build", "-f", appMap.CmdFile, "-t", image, ".")
|
||||
} else {
|
||||
cmd = exec.Command("docker", "build", "-f", appMap.CmdFile, appMap.Doc, "-t", image)
|
||||
}
|
||||
|
||||
cmd.Dir = appMap.Path
|
||||
/*
|
||||
docker build -t registry.cn-hangzhou.aliyuncs.com/fontree/auth:2.2 .
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/fontree/account:2.1
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/fontree/account:2.1
|
||||
*/
|
||||
|
||||
//阻塞至等待命令执行完成
|
||||
fmt.Println(cmd.String())
|
||||
fmt.Println("1---------------", appMap.Path)
|
||||
out, err1 := cmd.CombinedOutput()
|
||||
|
||||
fmt.Printf("%s\n", out)
|
||||
if err1 != nil {
|
||||
fmt.Println(err1)
|
||||
fmt.Println("结束")
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("------------------1 Success------------------")
|
||||
|
||||
//成功则去执行docker push操作
|
||||
cmd2 := exec.Command("docker", "push", image)
|
||||
out2, err2 := cmd2.CombinedOutput()
|
||||
|
||||
fmt.Printf("%s\n", out2)
|
||||
if err2 != nil {
|
||||
fmt.Println(err1)
|
||||
fmt.Println("结束")
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("------------------2 Success------------------")
|
||||
|
||||
//开始重新构建xxx
|
||||
|
||||
}
|
||||
|
||||
func copyFile(old string, new string) bool {
|
||||
op, err1 := os.Open(old)
|
||||
of, err2 := os.Create(new)
|
||||
if err1 != nil || err2 != nil {
|
||||
fmt.Println("文件拷贝失败")
|
||||
return false
|
||||
}
|
||||
defer op.Close()
|
||||
defer of.Close()
|
||||
_, err := io.Copy(of, op)
|
||||
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func GetAllFile(pathname string, s []string) ([]string, error) {
|
||||
rd, err := ioutil.ReadDir(pathname)
|
||||
if err != nil {
|
||||
fmt.Println("read dir fail:", err)
|
||||
return s, err
|
||||
}
|
||||
|
||||
for _, fi := range rd {
|
||||
if !fi.IsDir() {
|
||||
fullName := pathname + "/" + fi.Name()
|
||||
s = append(s, fullName)
|
||||
} else { //是文件夹
|
||||
//s = append(s, )
|
||||
}
|
||||
}
|
||||
return s, nil
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package artistinfo;
|
||||
option go_package = "./;artistinfo";
|
||||
// protoc --proto_path=. --go_out=./api/artistinfo --go-triple_out=./api/artistinfo ./api/artistinfo/artistinfo.proto
|
||||
// protoc --proto_path=. --go_out=./pb/artistinfo --go-triple_out=./pb/artistinfo ./pb/artistinfo/artistinfo.proto
|
||||
service ArtistInfo {
|
||||
rpc UploadPic (UploadPicRequest) returns (UploadPicRespond) {}
|
||||
rpc UploadIdCard (UploadIdCardRequest) returns (UploadIdCardRespond) {}
|
||||
@ -13,6 +13,7 @@ service ArtistInfo {
|
||||
rpc UpdateRealName (UpdateRealNameRequest) returns (UpdateRealNameRespond){}
|
||||
rpc FinishVerify (FinishVerifyRequest) returns (FinishVerifyRespond){}
|
||||
rpc CheckUserLock (CheckUserLockRequest) returns (CheckUserLockRespond) {}
|
||||
rpc ArtistSupplyList (ArtistSupplyListRequest) returns (ArtistSupplyListRespond){}
|
||||
|
||||
}
|
||||
message UploadPicRequest {
|
||||
@ -31,7 +32,10 @@ message UploadIdCardRespond {
|
||||
|
||||
}
|
||||
|
||||
|
||||
message CheckMsgRequest{
|
||||
string TelNum = 1 ;
|
||||
string VerCode = 2;
|
||||
}
|
||||
message RegisterUserRequest {
|
||||
uint64 Id =1;
|
||||
uint64 MgmtUserId =2;
|
||||
@ -172,3 +176,59 @@ message CheckUserLockRequest {
|
||||
message CheckUserLockRespond {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
message ArtistSupplyListRequest {
|
||||
string ArtistId = 1;
|
||||
string Name =2;
|
||||
string ArtistName =3;
|
||||
string InvitedName =4;
|
||||
uint64 IsImport =5;
|
||||
uint64 State =6;
|
||||
uint64 Page =7;
|
||||
uint64 PageSize =8;
|
||||
}
|
||||
|
||||
message ArtistSupplyListRespond {
|
||||
uint64 Count =1;
|
||||
repeated ArtistArtworkSupplyListResponseData Data =2;
|
||||
}
|
||||
|
||||
message ArtistArtworkSupplyListResponseData {
|
||||
string ID = 1;
|
||||
string Account = 2;
|
||||
uint64 PassRulerCount = 3;
|
||||
string MnemonicWords = 4;
|
||||
string TelNum = 5;
|
||||
uint64 PassArtworkCount = 6;
|
||||
string Name = 7;
|
||||
string PenName = 8;
|
||||
string Certificate = 9;
|
||||
string CertificateImg = 10;
|
||||
string Key = 11;
|
||||
uint64 Sex = 12;
|
||||
uint64 Age = 13;
|
||||
string Introduct = 14;
|
||||
string CreateTime = 15;
|
||||
string JoinAssoTime = 16;
|
||||
string StageName = 17;
|
||||
string UpdateTime = 18;
|
||||
string ConAddress = 19;
|
||||
string Photo = 20;
|
||||
string Video = 21;
|
||||
string InvitedName = 22;
|
||||
bool Enable = 23;
|
||||
string IdCard = 24;
|
||||
uint64 IsImport = 25;
|
||||
bool IsLock = 26;
|
||||
string IdCardFront = 27;
|
||||
string IdCardBack = 28;
|
||||
string BankName = 29;
|
||||
string BankAccount = 30;
|
||||
string MinTime = 31;
|
||||
string LockTime = 32;
|
||||
uint64 ArtworkCount = 33;
|
||||
uint64 RulerCount = 34;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
// versions:
|
||||
// - protoc-gen-go-triple v1.0.5
|
||||
// - protoc v3.9.0
|
||||
// source: api/artistinfo/artistinfo.proto
|
||||
// source: pb/artistinfo/artistinfo.proto
|
||||
|
||||
package artistinfo
|
||||
|
||||
@ -38,6 +38,7 @@ type ArtistInfoClient interface {
|
||||
UpdateRealName(ctx context.Context, in *UpdateRealNameRequest, opts ...grpc_go.CallOption) (*UpdateRealNameRespond, common.ErrorWithAttachment)
|
||||
FinishVerify(ctx context.Context, in *FinishVerifyRequest, opts ...grpc_go.CallOption) (*FinishVerifyRespond, common.ErrorWithAttachment)
|
||||
CheckUserLock(ctx context.Context, in *CheckUserLockRequest, opts ...grpc_go.CallOption) (*CheckUserLockRespond, common.ErrorWithAttachment)
|
||||
ArtistSupplyList(ctx context.Context, in *ArtistSupplyListRequest, opts ...grpc_go.CallOption) (*ArtistSupplyListRespond, common.ErrorWithAttachment)
|
||||
}
|
||||
|
||||
type artistInfoClient struct {
|
||||
@ -45,16 +46,17 @@ type artistInfoClient struct {
|
||||
}
|
||||
|
||||
type ArtistInfoClientImpl struct {
|
||||
UploadPic func(ctx context.Context, in *UploadPicRequest) (*UploadPicRespond, error)
|
||||
UploadIdCard func(ctx context.Context, in *UploadIdCardRequest) (*UploadIdCardRespond, error)
|
||||
RegisterUser func(ctx context.Context, in *RegisterUserRequest) (*RegisterUserRespond, error)
|
||||
GetUser func(ctx context.Context, in *GetUserRequest) (*GetUserRespond, error)
|
||||
GetUserById func(ctx context.Context, in *GetUserByIdRequest) (*GetUserByIdRespond, error)
|
||||
CreateUser func(ctx context.Context, in *CreateUserRequest) (*CreateUserRespond, error)
|
||||
CreateUserInfo func(ctx context.Context, in *CreateUserInfoRequest) (*CreateUserInfoRespond, error)
|
||||
UpdateRealName func(ctx context.Context, in *UpdateRealNameRequest) (*UpdateRealNameRespond, error)
|
||||
FinishVerify func(ctx context.Context, in *FinishVerifyRequest) (*FinishVerifyRespond, error)
|
||||
CheckUserLock func(ctx context.Context, in *CheckUserLockRequest) (*CheckUserLockRespond, error)
|
||||
UploadPic func(ctx context.Context, in *UploadPicRequest) (*UploadPicRespond, error)
|
||||
UploadIdCard func(ctx context.Context, in *UploadIdCardRequest) (*UploadIdCardRespond, error)
|
||||
RegisterUser func(ctx context.Context, in *RegisterUserRequest) (*RegisterUserRespond, error)
|
||||
GetUser func(ctx context.Context, in *GetUserRequest) (*GetUserRespond, error)
|
||||
GetUserById func(ctx context.Context, in *GetUserByIdRequest) (*GetUserByIdRespond, error)
|
||||
CreateUser func(ctx context.Context, in *CreateUserRequest) (*CreateUserRespond, error)
|
||||
CreateUserInfo func(ctx context.Context, in *CreateUserInfoRequest) (*CreateUserInfoRespond, error)
|
||||
UpdateRealName func(ctx context.Context, in *UpdateRealNameRequest) (*UpdateRealNameRespond, error)
|
||||
FinishVerify func(ctx context.Context, in *FinishVerifyRequest) (*FinishVerifyRespond, error)
|
||||
CheckUserLock func(ctx context.Context, in *CheckUserLockRequest) (*CheckUserLockRespond, error)
|
||||
ArtistSupplyList func(ctx context.Context, in *ArtistSupplyListRequest) (*ArtistSupplyListRespond, error)
|
||||
}
|
||||
|
||||
func (c *ArtistInfoClientImpl) GetDubboStub(cc *triple.TripleConn) ArtistInfoClient {
|
||||
@ -129,6 +131,12 @@ func (c *artistInfoClient) CheckUserLock(ctx context.Context, in *CheckUserLockR
|
||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CheckUserLock", in, out)
|
||||
}
|
||||
|
||||
func (c *artistInfoClient) ArtistSupplyList(ctx context.Context, in *ArtistSupplyListRequest, opts ...grpc_go.CallOption) (*ArtistSupplyListRespond, common.ErrorWithAttachment) {
|
||||
out := new(ArtistSupplyListRespond)
|
||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ArtistSupplyList", in, out)
|
||||
}
|
||||
|
||||
// ArtistInfoServer is the server API for ArtistInfo service.
|
||||
// All implementations must embed UnimplementedArtistInfoServer
|
||||
// for forward compatibility
|
||||
@ -143,6 +151,7 @@ type ArtistInfoServer interface {
|
||||
UpdateRealName(context.Context, *UpdateRealNameRequest) (*UpdateRealNameRespond, error)
|
||||
FinishVerify(context.Context, *FinishVerifyRequest) (*FinishVerifyRespond, error)
|
||||
CheckUserLock(context.Context, *CheckUserLockRequest) (*CheckUserLockRespond, error)
|
||||
ArtistSupplyList(context.Context, *ArtistSupplyListRequest) (*ArtistSupplyListRespond, error)
|
||||
mustEmbedUnimplementedArtistInfoServer()
|
||||
}
|
||||
|
||||
@ -181,6 +190,9 @@ func (UnimplementedArtistInfoServer) FinishVerify(context.Context, *FinishVerify
|
||||
func (UnimplementedArtistInfoServer) CheckUserLock(context.Context, *CheckUserLockRequest) (*CheckUserLockRespond, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CheckUserLock not implemented")
|
||||
}
|
||||
func (UnimplementedArtistInfoServer) ArtistSupplyList(context.Context, *ArtistSupplyListRequest) (*ArtistSupplyListRespond, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ArtistSupplyList not implemented")
|
||||
}
|
||||
func (s *UnimplementedArtistInfoServer) XXX_SetProxyImpl(impl protocol.Invoker) {
|
||||
s.proxyImpl = impl
|
||||
}
|
||||
@ -499,6 +511,35 @@ func _ArtistInfo_CheckUserLock_Handler(srv interface{}, ctx context.Context, dec
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ArtistInfo_ArtistSupplyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ArtistSupplyListRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
base := srv.(dubbo3.Dubbo3GrpcService)
|
||||
args := []interface{}{}
|
||||
args = append(args, in)
|
||||
md, _ := metadata.FromIncomingContext(ctx)
|
||||
invAttachment := make(map[string]interface{}, len(md))
|
||||
for k, v := range md {
|
||||
invAttachment[k] = v
|
||||
}
|
||||
invo := invocation.NewRPCInvocation("ArtistSupplyList", args, invAttachment)
|
||||
if interceptor == nil {
|
||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
||||
return result, result.Error()
|
||||
}
|
||||
info := &grpc_go.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
||||
return result, result.Error()
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// ArtistInfo_ServiceDesc is the grpc_go.ServiceDesc for ArtistInfo service.
|
||||
// It's only intended for direct use with grpc_go.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@ -546,7 +587,11 @@ var ArtistInfo_ServiceDesc = grpc_go.ServiceDesc{
|
||||
MethodName: "CheckUserLock",
|
||||
Handler: _ArtistInfo_CheckUserLock_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ArtistSupplyList",
|
||||
Handler: _ArtistInfo_ArtistSupplyList_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc_go.StreamDesc{},
|
||||
Metadata: "api/artistinfo/artistinfo.proto",
|
||||
Metadata: "pb/artistinfo/artistinfo.proto",
|
||||
}
|
||||
|
@ -94,10 +94,10 @@ type ArtworkListRequest struct {
|
||||
Name string `protobuf:"bytes,3,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
|
||||
ArtistName string `protobuf:"bytes,4,opt,name=ArtistName,json=artistName,proto3" json:"ArtistName,omitempty"`
|
||||
InvitedName string `protobuf:"bytes,5,opt,name=InvitedName,json=invitedName,proto3" json:"InvitedName,omitempty"`
|
||||
IsImport int64 `protobuf:"varint,6,opt,name=IsImport,json=isImport,proto3" json:"IsImport,omitempty"`
|
||||
State int64 `protobuf:"varint,7,opt,name=State,json=state,proto3" json:"State,omitempty"`
|
||||
Page int64 `protobuf:"varint,8,opt,name=Page,json=page,proto3" json:"Page,omitempty"`
|
||||
Num int64 `protobuf:"varint,9,opt,name=Num,json=num,proto3" json:"Num,omitempty"`
|
||||
IsImport uint64 `protobuf:"varint,6,opt,name=IsImport,json=isImport,proto3" json:"IsImport,omitempty"`
|
||||
State uint64 `protobuf:"varint,7,opt,name=State,json=state,proto3" json:"State,omitempty"`
|
||||
Page uint64 `protobuf:"varint,8,opt,name=Page,json=page,proto3" json:"Page,omitempty"`
|
||||
Num uint64 `protobuf:"varint,9,opt,name=Num,json=num,proto3" json:"Num,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ArtworkListRequest) Reset() {
|
||||
@ -167,28 +167,28 @@ func (x *ArtworkListRequest) GetInvitedName() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ArtworkListRequest) GetIsImport() int64 {
|
||||
func (x *ArtworkListRequest) GetIsImport() uint64 {
|
||||
if x != nil {
|
||||
return x.IsImport
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ArtworkListRequest) GetState() int64 {
|
||||
func (x *ArtworkListRequest) GetState() uint64 {
|
||||
if x != nil {
|
||||
return x.State
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ArtworkListRequest) GetPage() int64 {
|
||||
func (x *ArtworkListRequest) GetPage() uint64 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ArtworkListRequest) GetNum() int64 {
|
||||
func (x *ArtworkListRequest) GetNum() uint64 {
|
||||
if x != nil {
|
||||
return x.Num
|
||||
}
|
||||
@ -491,7 +491,7 @@ type UpdateArtworkRequest struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
|
||||
ArtistId uint64 `protobuf:"varint,2,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
|
||||
ArtistId string `protobuf:"bytes,2,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
|
||||
Name string `protobuf:"bytes,3,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
|
||||
ModelYear string `protobuf:"bytes,4,opt,name=ModelYear,json=modelYear,proto3" json:"ModelYear,omitempty"`
|
||||
Photo string `protobuf:"bytes,5,opt,name=Photo,json=photo,proto3" json:"Photo,omitempty"`
|
||||
@ -547,11 +547,11 @@ func (x *UpdateArtworkRequest) GetID() uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UpdateArtworkRequest) GetArtistId() uint64 {
|
||||
func (x *UpdateArtworkRequest) GetArtistId() string {
|
||||
if x != nil {
|
||||
return x.ArtistId
|
||||
}
|
||||
return 0
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateArtworkRequest) GetName() string {
|
||||
@ -737,6 +737,77 @@ func (x *GetArtworkListRequest) GetID() uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
type ApproveArtworkRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ArtworkId string `protobuf:"bytes,1,opt,name=ArtworkId,json=artworkId,proto3" json:"ArtworkId,omitempty"`
|
||||
IsApprove bool `protobuf:"varint,2,opt,name=IsApprove,json=isApprove,proto3" json:"IsApprove,omitempty"`
|
||||
Remark string `protobuf:"bytes,3,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"`
|
||||
Remark2 string `protobuf:"bytes,4,opt,name=Remark2,json=remark2,proto3" json:"Remark2,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ApproveArtworkRequest) Reset() {
|
||||
*x = ApproveArtworkRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ApproveArtworkRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ApproveArtworkRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ApproveArtworkRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[9]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ApproveArtworkRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ApproveArtworkRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *ApproveArtworkRequest) GetArtworkId() string {
|
||||
if x != nil {
|
||||
return x.ArtworkId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApproveArtworkRequest) GetIsApprove() bool {
|
||||
if x != nil {
|
||||
return x.IsApprove
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *ApproveArtworkRequest) GetRemark() string {
|
||||
if x != nil {
|
||||
return x.Remark
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApproveArtworkRequest) GetRemark2() string {
|
||||
if x != nil {
|
||||
return x.Remark2
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetArtworkListRespond struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -748,7 +819,7 @@ type GetArtworkListRespond struct {
|
||||
func (x *GetArtworkListRespond) Reset() {
|
||||
*x = GetArtworkListRespond{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[9]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -761,7 +832,7 @@ func (x *GetArtworkListRespond) String() string {
|
||||
func (*GetArtworkListRespond) ProtoMessage() {}
|
||||
|
||||
func (x *GetArtworkListRespond) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[9]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[10]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -774,7 +845,7 @@ func (x *GetArtworkListRespond) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GetArtworkListRespond.ProtoReflect.Descriptor instead.
|
||||
func (*GetArtworkListRespond) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{9}
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *GetArtworkListRespond) GetData() []*UpdateArtworkRequest {
|
||||
@ -784,6 +855,164 @@ func (x *GetArtworkListRespond) GetData() []*UpdateArtworkRequest {
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetMgmtArtworkListRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
BatchId int64 `protobuf:"varint,1,opt,name=BatchId,json=batchId,proto3" json:"BatchId,omitempty"`
|
||||
ArtistId int64 `protobuf:"varint,2,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
|
||||
Name string `protobuf:"bytes,3,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
|
||||
ArtistName string `protobuf:"bytes,4,opt,name=ArtistName,json=artistName,proto3" json:"ArtistName,omitempty"`
|
||||
InvitedName string `protobuf:"bytes,5,opt,name=InvitedName,json=invitedName,proto3" json:"InvitedName,omitempty"`
|
||||
IsImport uint64 `protobuf:"varint,6,opt,name=IsImport,json=isImport,proto3" json:"IsImport,omitempty"`
|
||||
State uint64 `protobuf:"varint,7,opt,name=State,json=state,proto3" json:"State,omitempty"`
|
||||
Page uint64 `protobuf:"varint,8,opt,name=Page,json=page,proto3" json:"Page,omitempty"`
|
||||
Num uint64 `protobuf:"varint,9,opt,name=Num,json=num,proto3" json:"Num,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) Reset() {
|
||||
*x = GetMgmtArtworkListRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetMgmtArtworkListRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[11]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetMgmtArtworkListRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetMgmtArtworkListRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) GetBatchId() int64 {
|
||||
if x != nil {
|
||||
return x.BatchId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) GetArtistId() int64 {
|
||||
if x != nil {
|
||||
return x.ArtistId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) GetArtistName() string {
|
||||
if x != nil {
|
||||
return x.ArtistName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) GetInvitedName() string {
|
||||
if x != nil {
|
||||
return x.InvitedName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) GetIsImport() uint64 {
|
||||
if x != nil {
|
||||
return x.IsImport
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) GetState() uint64 {
|
||||
if x != nil {
|
||||
return x.State
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) GetPage() uint64 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRequest) GetNum() uint64 {
|
||||
if x != nil {
|
||||
return x.Num
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type GetMgmtArtworkListRespond struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Data []*UpdateArtworkRequest `protobuf:"bytes,2,rep,name=Data,json=data,proto3" json:"Data,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRespond) Reset() {
|
||||
*x = GetMgmtArtworkListRespond{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRespond) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetMgmtArtworkListRespond) ProtoMessage() {}
|
||||
|
||||
func (x *GetMgmtArtworkListRespond) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[12]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetMgmtArtworkListRespond.ProtoReflect.Descriptor instead.
|
||||
func (*GetMgmtArtworkListRespond) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *GetMgmtArtworkListRespond) GetData() []*UpdateArtworkRequest {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetArtworkRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -795,7 +1024,7 @@ type GetArtworkRequest struct {
|
||||
func (x *GetArtworkRequest) Reset() {
|
||||
*x = GetArtworkRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[10]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -808,7 +1037,7 @@ func (x *GetArtworkRequest) String() string {
|
||||
func (*GetArtworkRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetArtworkRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[10]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[13]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -821,7 +1050,7 @@ func (x *GetArtworkRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GetArtworkRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetArtworkRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{10}
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *GetArtworkRequest) GetID() uint64 {
|
||||
@ -837,7 +1066,7 @@ type GetArtworkRespond struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID uint64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
|
||||
ArtistId uint64 `protobuf:"varint,2,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
|
||||
ArtistId string `protobuf:"bytes,2,opt,name=ArtistId,json=artistId,proto3" json:"ArtistId,omitempty"`
|
||||
Name string `protobuf:"bytes,3,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
|
||||
ModelYear string `protobuf:"bytes,4,opt,name=ModelYear,json=modelYear,proto3" json:"ModelYear,omitempty"`
|
||||
Photo string `protobuf:"bytes,5,opt,name=Photo,json=photo,proto3" json:"Photo,omitempty"`
|
||||
@ -857,7 +1086,7 @@ type GetArtworkRespond struct {
|
||||
func (x *GetArtworkRespond) Reset() {
|
||||
*x = GetArtworkRespond{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[11]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -870,7 +1099,7 @@ func (x *GetArtworkRespond) String() string {
|
||||
func (*GetArtworkRespond) ProtoMessage() {}
|
||||
|
||||
func (x *GetArtworkRespond) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[11]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[14]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -883,7 +1112,7 @@ func (x *GetArtworkRespond) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GetArtworkRespond.ProtoReflect.Descriptor instead.
|
||||
func (*GetArtworkRespond) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{11}
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *GetArtworkRespond) GetID() uint64 {
|
||||
@ -893,11 +1122,11 @@ func (x *GetArtworkRespond) GetID() uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetArtworkRespond) GetArtistId() uint64 {
|
||||
func (x *GetArtworkRespond) GetArtistId() string {
|
||||
if x != nil {
|
||||
return x.ArtistId
|
||||
}
|
||||
return 0
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetArtworkRespond) GetName() string {
|
||||
@ -1010,7 +1239,7 @@ type DelArtworkRequest struct {
|
||||
func (x *DelArtworkRequest) Reset() {
|
||||
*x = DelArtworkRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[12]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1023,7 +1252,7 @@ func (x *DelArtworkRequest) String() string {
|
||||
func (*DelArtworkRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DelArtworkRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[12]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[15]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1036,7 +1265,7 @@ func (x *DelArtworkRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DelArtworkRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DelArtworkRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{12}
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *DelArtworkRequest) GetId() uint64 {
|
||||
@ -1062,7 +1291,7 @@ type DelArtworkRespond struct {
|
||||
func (x *DelArtworkRespond) Reset() {
|
||||
*x = DelArtworkRespond{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[13]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[16]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1075,7 +1304,7 @@ func (x *DelArtworkRespond) String() string {
|
||||
func (*DelArtworkRespond) ProtoMessage() {}
|
||||
|
||||
func (x *DelArtworkRespond) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[13]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[16]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1088,7 +1317,7 @@ func (x *DelArtworkRespond) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DelArtworkRespond.ProtoReflect.Descriptor instead.
|
||||
func (*DelArtworkRespond) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{13}
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{16}
|
||||
}
|
||||
|
||||
type UploadArtworkRequest struct {
|
||||
@ -1102,7 +1331,7 @@ type UploadArtworkRequest struct {
|
||||
func (x *UploadArtworkRequest) Reset() {
|
||||
*x = UploadArtworkRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[14]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[17]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1115,7 +1344,7 @@ func (x *UploadArtworkRequest) String() string {
|
||||
func (*UploadArtworkRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UploadArtworkRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[14]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[17]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1128,7 +1357,7 @@ func (x *UploadArtworkRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use UploadArtworkRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UploadArtworkRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{14}
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{17}
|
||||
}
|
||||
|
||||
func (x *UploadArtworkRequest) GetID() uint64 {
|
||||
@ -1147,7 +1376,7 @@ type UploadArtworkRespond struct {
|
||||
func (x *UploadArtworkRespond) Reset() {
|
||||
*x = UploadArtworkRespond{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[15]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[18]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1160,7 +1389,7 @@ func (x *UploadArtworkRespond) String() string {
|
||||
func (*UploadArtworkRespond) ProtoMessage() {}
|
||||
|
||||
func (x *UploadArtworkRespond) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[15]
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[18]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1173,7 +1402,45 @@ func (x *UploadArtworkRespond) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use UploadArtworkRespond.ProtoReflect.Descriptor instead.
|
||||
func (*UploadArtworkRespond) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{15}
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{18}
|
||||
}
|
||||
|
||||
type ApproveArtworkRespond struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *ApproveArtworkRespond) Reset() {
|
||||
*x = ApproveArtworkRespond{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[19]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ApproveArtworkRespond) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ApproveArtworkRespond) ProtoMessage() {}
|
||||
|
||||
func (x *ApproveArtworkRespond) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_artwork_artwork_proto_msgTypes[19]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ApproveArtworkRespond.ProtoReflect.Descriptor instead.
|
||||
func (*ApproveArtworkRespond) Descriptor() ([]byte, []int) {
|
||||
return file_api_artwork_artwork_proto_rawDescGZIP(), []int{19}
|
||||
}
|
||||
|
||||
var File_api_artwork_artwork_proto protoreflect.FileDescriptor
|
||||
@ -1197,11 +1464,11 @@ var file_api_artwork_artwork_proto_rawDesc = []byte{
|
||||
0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x49, 0x6e, 0x76,
|
||||
0x69, 0x74, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
||||
0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x49,
|
||||
0x73, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69,
|
||||
0x73, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x69,
|
||||
0x73, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65,
|
||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x50, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67,
|
||||
0x65, 0x12, 0x10, 0x0a, 0x03, 0x4e, 0x75, 0x6d, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03,
|
||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x50, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x70, 0x61, 0x67,
|
||||
0x65, 0x12, 0x10, 0x0a, 0x03, 0x4e, 0x75, 0x6d, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03,
|
||||
0x6e, 0x75, 0x6d, 0x22, 0xbf, 0x03, 0x0a, 0x11, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41,
|
||||
0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x72, 0x74,
|
||||
@ -1239,7 +1506,7 @@ var file_api_artwork_artwork_proto_rawDesc = []byte{
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52,
|
||||
0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x64, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x64, 0x12,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x64, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
|
||||
0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x59, 0x65, 0x61, 0x72,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x59, 0x65, 0x61,
|
||||
@ -1268,87 +1535,130 @@ var file_api_artwork_artwork_proto_rawDesc = []byte{
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x27, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x72,
|
||||
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64,
|
||||
0x22, 0x4a, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69,
|
||||
0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x12, 0x31, 0x0a, 0x04, 0x44, 0x61, 0x74,
|
||||
0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
|
||||
0x6b, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x23, 0x0a, 0x11,
|
||||
0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69,
|
||||
0x64, 0x22, 0xbf, 0x03, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x73,
|
||||
0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x73,
|
||||
0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x4d, 0x6f, 0x64, 0x65, 0x6c,
|
||||
0x59, 0x65, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x64, 0x65,
|
||||
0x6c, 0x59, 0x65, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x41,
|
||||
0x72, 0x74, 0x69, 0x73, 0x74, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x57, 0x69, 0x64, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x77, 0x69,
|
||||
0x64, 0x74, 0x68, 0x12, 0x24, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64,
|
||||
0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x48, 0x65, 0x69,
|
||||
0x67, 0x68, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68,
|
||||
0x74, 0x12, 0x14, 0x0a, 0x05, 0x52, 0x75, 0x6c, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04,
|
||||
0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x72, 0x6f,
|
||||
0x64, 0x75, 0x63, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x72,
|
||||
0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x41, 0x67, 0x65, 0x4f, 0x66, 0x43, 0x72,
|
||||
0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67,
|
||||
0x65, 0x4f, 0x66, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x43,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x4e, 0x65, 0x74, 0x77, 0x6f,
|
||||
0x72, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6e,
|
||||
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x55,
|
||||
0x72, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x74,
|
||||
0x61, 0x74, 0x65, 0x22, 0x3f, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
|
||||
0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69,
|
||||
0x73, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69,
|
||||
0x73, 0x74, 0x49, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f,
|
||||
0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x55, 0x70, 0x6c,
|
||||
0x6f, 0x61, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69,
|
||||
0x64, 0x22, 0x16, 0x0a, 0x14, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f,
|
||||
0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x32, 0xa8, 0x04, 0x0a, 0x07, 0x41, 0x72,
|
||||
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x46, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b,
|
||||
0x41, 0x64, 0x64, 0x12, 0x1a, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x72,
|
||||
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||
0x1a, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
|
||||
0x6b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00, 0x12, 0x4f, 0x0a,
|
||||
0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x1d,
|
||||
0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73,
|
||||
0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,
|
||||
0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65,
|
||||
0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00, 0x12, 0x4f,
|
||||
0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12,
|
||||
0x1d, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||
0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d,
|
||||
0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41,
|
||||
0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00, 0x12,
|
||||
0x52, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73,
|
||||
0x74, 0x12, 0x1e, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x41,
|
||||
0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x1e, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x41,
|
||||
0x22, 0x85, 0x01, 0x0a, 0x15, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x72, 0x74, 0x77,
|
||||
0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x41, 0x72,
|
||||
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61,
|
||||
0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x49, 0x73, 0x41, 0x70,
|
||||
0x70, 0x72, 0x6f, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x41,
|
||||
0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x61, 0x72, 0x6b,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x18,
|
||||
0x0a, 0x07, 0x52, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x07, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x32, 0x22, 0x4a, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41,
|
||||
0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x64, 0x22, 0x00, 0x12, 0x46, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
|
||||
0x6b, 0x12, 0x1a, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x41,
|
||||
0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e,
|
||||
0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f,
|
||||
0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00, 0x12, 0x46, 0x0a, 0x0a, 0x44,
|
||||
0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1a, 0x2e, 0x41, 0x72, 0x74, 0x77,
|
||||
0x6f, 0x72, 0x6b, 0x2e, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e,
|
||||
0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x64, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0d, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x74,
|
||||
0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1d, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55,
|
||||
0x70, 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55, 0x70,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x64, 0x22, 0x00, 0x42, 0x0c, 0x5a, 0x0a, 0x2e, 0x2f, 0x3b, 0x61, 0x72, 0x74, 0x77, 0x6f,
|
||||
0x72, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x64, 0x12, 0x31, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x1d, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||
0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04,
|
||||
0x64, 0x61, 0x74, 0x61, 0x22, 0xff, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4d, 0x67, 0x6d, 0x74,
|
||||
0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08,
|
||||
0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
|
||||
0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a,
|
||||
0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b,
|
||||
0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0b, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a,
|
||||
0x0a, 0x08, 0x49, 0x73, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04,
|
||||
0x52, 0x08, 0x69, 0x73, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74,
|
||||
0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04,
|
||||
0x70, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4e, 0x75, 0x6d, 0x18, 0x09, 0x20, 0x01, 0x28,
|
||||
0x04, 0x52, 0x03, 0x6e, 0x75, 0x6d, 0x22, 0x4e, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4d, 0x67, 0x6d,
|
||||
0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x64, 0x12, 0x31, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x1d, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55, 0x70, 0x64, 0x61,
|
||||
0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74,
|
||||
0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49,
|
||||
0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0xbf, 0x03, 0x0a, 0x11,
|
||||
0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x64, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69,
|
||||
0x64, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x12, 0x1c, 0x0a, 0x09, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x12,
|
||||
0x14, 0x0a, 0x05, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||||
0x70, 0x68, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x50,
|
||||
0x68, 0x6f, 0x74, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69,
|
||||
0x73, 0x74, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x69, 0x64, 0x74, 0x68,
|
||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x24, 0x0a,
|
||||
0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08,
|
||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72,
|
||||
0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x09, 0x20,
|
||||
0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x52,
|
||||
0x75, 0x6c, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65,
|
||||
0x72, 0x12, 0x1c, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x18, 0x0b,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12,
|
||||
0x24, 0x0a, 0x0d, 0x41, 0x67, 0x65, 0x4f, 0x66, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x43, 0x72, 0x65,
|
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
|
||||
0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
|
||||
0x74, 0x12, 0x22, 0x0a, 0x0c, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x72, 0x61, 0x63,
|
||||
0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
|
||||
0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x72, 0x6c, 0x18, 0x0f, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65,
|
||||
0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3f, 0x0a,
|
||||
0x11, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02,
|
||||
0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x64, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x64, 0x22, 0x13,
|
||||
0x0a, 0x11, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x74,
|
||||
0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49,
|
||||
0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x16, 0x0a, 0x14, 0x55,
|
||||
0x70, 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x72,
|
||||
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x32, 0xdc, 0x05, 0x0a,
|
||||
0x07, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x46, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x77,
|
||||
0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x12, 0x1a, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b,
|
||||
0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x72, 0x74,
|
||||
0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00,
|
||||
0x12, 0x4f, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x63,
|
||||
0x6b, 0x12, 0x1d, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63,
|
||||
0x6b, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x1d, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b,
|
||||
0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22,
|
||||
0x00, 0x12, 0x4f, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f,
|
||||
0x72, 0x6b, 0x12, 0x1d, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55, 0x70, 0x64,
|
||||
0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x1d, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55, 0x70, 0x64, 0x61,
|
||||
0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64,
|
||||
0x22, 0x00, 0x12, 0x52, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b,
|
||||
0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x47,
|
||||
0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x47,
|
||||
0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76,
|
||||
0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1e, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f,
|
||||
0x72, 0x6b, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
|
||||
0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f,
|
||||
0x72, 0x6b, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
|
||||
0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x12, 0x47, 0x65,
|
||||
0x74, 0x4d, 0x67, 0x6d, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74,
|
||||
0x12, 0x22, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x67,
|
||||
0x6d, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x47,
|
||||
0x65, 0x74, 0x4d, 0x67, 0x6d, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73,
|
||||
0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00, 0x12, 0x46, 0x0a, 0x0a, 0x47, 0x65,
|
||||
0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1a, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f,
|
||||
0x72, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x47,
|
||||
0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64,
|
||||
0x22, 0x00, 0x12, 0x46, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b,
|
||||
0x12, 0x1a, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x44, 0x65, 0x6c, 0x41, 0x72,
|
||||
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x41,
|
||||
0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
|
||||
0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0d, 0x55, 0x70,
|
||||
0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1d, 0x2e, 0x41, 0x72,
|
||||
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x74, 0x77,
|
||||
0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x41, 0x72, 0x74,
|
||||
0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f,
|
||||
0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00, 0x42, 0x0c, 0x5a, 0x0a, 0x2e,
|
||||
0x2f, 0x3b, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -1363,46 +1673,55 @@ func file_api_artwork_artwork_proto_rawDescGZIP() []byte {
|
||||
return file_api_artwork_artwork_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_api_artwork_artwork_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
||||
var file_api_artwork_artwork_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
|
||||
var file_api_artwork_artwork_proto_goTypes = []interface{}{
|
||||
(*ListInterfaceRespond)(nil), // 0: Artwork.ListInterfaceRespond
|
||||
(*ArtworkListRequest)(nil), // 1: Artwork.ArtworkListRequest
|
||||
(*ArtworkAddRequest)(nil), // 2: Artwork.ArtworkAddRequest
|
||||
(*ArtworkAddRespond)(nil), // 3: Artwork.ArtworkAddRespond
|
||||
(*CheckUserLockRequest)(nil), // 4: Artwork.CheckUserLockRequest
|
||||
(*CheckUserLockRespond)(nil), // 5: Artwork.CheckUserLockRespond
|
||||
(*UpdateArtworkRequest)(nil), // 6: Artwork.UpdateArtworkRequest
|
||||
(*UpdateArtworkRespond)(nil), // 7: Artwork.UpdateArtworkRespond
|
||||
(*GetArtworkListRequest)(nil), // 8: Artwork.GetArtworkListRequest
|
||||
(*GetArtworkListRespond)(nil), // 9: Artwork.GetArtworkListRespond
|
||||
(*GetArtworkRequest)(nil), // 10: Artwork.GetArtworkRequest
|
||||
(*GetArtworkRespond)(nil), // 11: Artwork.GetArtworkRespond
|
||||
(*DelArtworkRequest)(nil), // 12: Artwork.DelArtworkRequest
|
||||
(*DelArtworkRespond)(nil), // 13: Artwork.DelArtworkRespond
|
||||
(*UploadArtworkRequest)(nil), // 14: Artwork.UploadArtworkRequest
|
||||
(*UploadArtworkRespond)(nil), // 15: Artwork.UploadArtworkRespond
|
||||
(*ListInterfaceRespond)(nil), // 0: Artwork.ListInterfaceRespond
|
||||
(*ArtworkListRequest)(nil), // 1: Artwork.ArtworkListRequest
|
||||
(*ArtworkAddRequest)(nil), // 2: Artwork.ArtworkAddRequest
|
||||
(*ArtworkAddRespond)(nil), // 3: Artwork.ArtworkAddRespond
|
||||
(*CheckUserLockRequest)(nil), // 4: Artwork.CheckUserLockRequest
|
||||
(*CheckUserLockRespond)(nil), // 5: Artwork.CheckUserLockRespond
|
||||
(*UpdateArtworkRequest)(nil), // 6: Artwork.UpdateArtworkRequest
|
||||
(*UpdateArtworkRespond)(nil), // 7: Artwork.UpdateArtworkRespond
|
||||
(*GetArtworkListRequest)(nil), // 8: Artwork.GetArtworkListRequest
|
||||
(*ApproveArtworkRequest)(nil), // 9: Artwork.ApproveArtworkRequest
|
||||
(*GetArtworkListRespond)(nil), // 10: Artwork.GetArtworkListRespond
|
||||
(*GetMgmtArtworkListRequest)(nil), // 11: Artwork.GetMgmtArtworkListRequest
|
||||
(*GetMgmtArtworkListRespond)(nil), // 12: Artwork.GetMgmtArtworkListRespond
|
||||
(*GetArtworkRequest)(nil), // 13: Artwork.GetArtworkRequest
|
||||
(*GetArtworkRespond)(nil), // 14: Artwork.GetArtworkRespond
|
||||
(*DelArtworkRequest)(nil), // 15: Artwork.DelArtworkRequest
|
||||
(*DelArtworkRespond)(nil), // 16: Artwork.DelArtworkRespond
|
||||
(*UploadArtworkRequest)(nil), // 17: Artwork.UploadArtworkRequest
|
||||
(*UploadArtworkRespond)(nil), // 18: Artwork.UploadArtworkRespond
|
||||
(*ApproveArtworkRespond)(nil), // 19: Artwork.ApproveArtworkRespond
|
||||
}
|
||||
var file_api_artwork_artwork_proto_depIdxs = []int32{
|
||||
6, // 0: Artwork.GetArtworkListRespond.Data:type_name -> Artwork.UpdateArtworkRequest
|
||||
2, // 1: Artwork.Artwork.ArtworkAdd:input_type -> Artwork.ArtworkAddRequest
|
||||
4, // 2: Artwork.Artwork.CheckUserLock:input_type -> Artwork.CheckUserLockRequest
|
||||
6, // 3: Artwork.Artwork.UpdateArtwork:input_type -> Artwork.UpdateArtworkRequest
|
||||
8, // 4: Artwork.Artwork.GetArtworkList:input_type -> Artwork.GetArtworkListRequest
|
||||
10, // 5: Artwork.Artwork.GetArtwork:input_type -> Artwork.GetArtworkRequest
|
||||
12, // 6: Artwork.Artwork.DelArtwork:input_type -> Artwork.DelArtworkRequest
|
||||
14, // 7: Artwork.Artwork.UploadArtwork:input_type -> Artwork.UploadArtworkRequest
|
||||
3, // 8: Artwork.Artwork.ArtworkAdd:output_type -> Artwork.ArtworkAddRespond
|
||||
5, // 9: Artwork.Artwork.CheckUserLock:output_type -> Artwork.CheckUserLockRespond
|
||||
7, // 10: Artwork.Artwork.UpdateArtwork:output_type -> Artwork.UpdateArtworkRespond
|
||||
9, // 11: Artwork.Artwork.GetArtworkList:output_type -> Artwork.GetArtworkListRespond
|
||||
11, // 12: Artwork.Artwork.GetArtwork:output_type -> Artwork.GetArtworkRespond
|
||||
13, // 13: Artwork.Artwork.DelArtwork:output_type -> Artwork.DelArtworkRespond
|
||||
15, // 14: Artwork.Artwork.UploadArtwork:output_type -> Artwork.UploadArtworkRespond
|
||||
8, // [8:15] is the sub-list for method output_type
|
||||
1, // [1:8] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
6, // 1: Artwork.GetMgmtArtworkListRespond.Data:type_name -> Artwork.UpdateArtworkRequest
|
||||
2, // 2: Artwork.Artwork.ArtworkAdd:input_type -> Artwork.ArtworkAddRequest
|
||||
4, // 3: Artwork.Artwork.CheckUserLock:input_type -> Artwork.CheckUserLockRequest
|
||||
6, // 4: Artwork.Artwork.UpdateArtwork:input_type -> Artwork.UpdateArtworkRequest
|
||||
8, // 5: Artwork.Artwork.GetArtworkList:input_type -> Artwork.GetArtworkListRequest
|
||||
9, // 6: Artwork.Artwork.ApproveArtwork:input_type -> Artwork.ApproveArtworkRequest
|
||||
11, // 7: Artwork.Artwork.GetMgmtArtworkList:input_type -> Artwork.GetMgmtArtworkListRequest
|
||||
13, // 8: Artwork.Artwork.GetArtwork:input_type -> Artwork.GetArtworkRequest
|
||||
15, // 9: Artwork.Artwork.DelArtwork:input_type -> Artwork.DelArtworkRequest
|
||||
17, // 10: Artwork.Artwork.UploadArtwork:input_type -> Artwork.UploadArtworkRequest
|
||||
3, // 11: Artwork.Artwork.ArtworkAdd:output_type -> Artwork.ArtworkAddRespond
|
||||
5, // 12: Artwork.Artwork.CheckUserLock:output_type -> Artwork.CheckUserLockRespond
|
||||
7, // 13: Artwork.Artwork.UpdateArtwork:output_type -> Artwork.UpdateArtworkRespond
|
||||
10, // 14: Artwork.Artwork.GetArtworkList:output_type -> Artwork.GetArtworkListRespond
|
||||
19, // 15: Artwork.Artwork.ApproveArtwork:output_type -> Artwork.ApproveArtworkRespond
|
||||
12, // 16: Artwork.Artwork.GetMgmtArtworkList:output_type -> Artwork.GetMgmtArtworkListRespond
|
||||
14, // 17: Artwork.Artwork.GetArtwork:output_type -> Artwork.GetArtworkRespond
|
||||
16, // 18: Artwork.Artwork.DelArtwork:output_type -> Artwork.DelArtworkRespond
|
||||
18, // 19: Artwork.Artwork.UploadArtwork:output_type -> Artwork.UploadArtworkRespond
|
||||
11, // [11:20] is the sub-list for method output_type
|
||||
2, // [2:11] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
2, // [2:2] is the sub-list for extension extendee
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_api_artwork_artwork_proto_init() }
|
||||
@ -1520,7 +1839,7 @@ func file_api_artwork_artwork_proto_init() {
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetArtworkListRespond); i {
|
||||
switch v := v.(*ApproveArtworkRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1532,7 +1851,7 @@ func file_api_artwork_artwork_proto_init() {
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetArtworkRequest); i {
|
||||
switch v := v.(*GetArtworkListRespond); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1544,7 +1863,7 @@ func file_api_artwork_artwork_proto_init() {
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetArtworkRespond); i {
|
||||
switch v := v.(*GetMgmtArtworkListRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1556,7 +1875,7 @@ func file_api_artwork_artwork_proto_init() {
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DelArtworkRequest); i {
|
||||
switch v := v.(*GetMgmtArtworkListRespond); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1568,7 +1887,7 @@ func file_api_artwork_artwork_proto_init() {
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DelArtworkRespond); i {
|
||||
switch v := v.(*GetArtworkRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1580,7 +1899,7 @@ func file_api_artwork_artwork_proto_init() {
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UploadArtworkRequest); i {
|
||||
switch v := v.(*GetArtworkRespond); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1592,6 +1911,42 @@ func file_api_artwork_artwork_proto_init() {
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DelArtworkRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DelArtworkRespond); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UploadArtworkRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UploadArtworkRespond); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1603,6 +1958,18 @@ func file_api_artwork_artwork_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_api_artwork_artwork_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ApproveArtworkRespond); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@ -1610,7 +1977,7 @@ func file_api_artwork_artwork_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_api_artwork_artwork_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 16,
|
||||
NumMessages: 20,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
@ -7,6 +7,8 @@ service Artwork {
|
||||
rpc CheckUserLock (CheckUserLockRequest) returns (CheckUserLockRespond) {}
|
||||
rpc UpdateArtwork (UpdateArtworkRequest) returns (UpdateArtworkRespond) {}
|
||||
rpc GetArtworkList (GetArtworkListRequest) returns (GetArtworkListRespond) {}
|
||||
rpc ApproveArtwork (ApproveArtworkRequest) returns (ApproveArtworkRespond) {}
|
||||
rpc GetMgmtArtworkList (GetMgmtArtworkListRequest) returns (GetMgmtArtworkListRespond) {}
|
||||
rpc GetArtwork (GetArtworkRequest) returns (GetArtworkRespond) {}
|
||||
rpc DelArtwork (DelArtworkRequest) returns (DelArtworkRespond) {}
|
||||
rpc UploadArtwork (UploadArtworkRequest) returns (UploadArtworkRespond) {}
|
||||
@ -25,10 +27,10 @@ message ArtworkListRequest {
|
||||
string Name = 3 [json_name = "name"];
|
||||
string ArtistName = 4 [json_name = "artistName"];
|
||||
string InvitedName = 5 [json_name = "invitedName"];
|
||||
int64 IsImport = 6 [json_name ="isImport"];
|
||||
int64 State = 7 [json_name = "state"];
|
||||
int64 Page = 8 [json_name = "page"];
|
||||
int64 Num = 9 [json_name = "num"];
|
||||
uint64 IsImport = 6 [json_name ="isImport"];
|
||||
uint64 State = 7 [json_name = "state"];
|
||||
uint64 Page = 8 [json_name = "page"];
|
||||
uint64 Num = 9 [json_name = "num"];
|
||||
}
|
||||
|
||||
message ArtworkAddRequest {
|
||||
@ -65,7 +67,7 @@ message CheckUserLockRequest {
|
||||
|
||||
message UpdateArtworkRequest {
|
||||
uint64 ID = 1 [json_name = "id"];
|
||||
uint64 ArtistId = 2 [json_name = "artistId"];
|
||||
string ArtistId = 2 [json_name = "artistId"];
|
||||
string Name = 3 [json_name = "name"];
|
||||
string ModelYear = 4 [json_name = "modelYear"];
|
||||
string Photo = 5 [json_name = "photo"];
|
||||
@ -90,17 +92,38 @@ message CheckUserLockRequest {
|
||||
message GetArtworkListRequest {
|
||||
uint64 ID = 1 [json_name = "id"];
|
||||
}
|
||||
|
||||
|
||||
message ApproveArtworkRequest {
|
||||
string ArtworkId =1 [json_name = "artworkId"];
|
||||
bool IsApprove =2 [json_name = "isApprove"];
|
||||
string Remark =3 [json_name = "remark"];
|
||||
string Remark2 =4 [json_name = "remark2"];
|
||||
}
|
||||
message GetArtworkListRespond {
|
||||
repeated UpdateArtworkRequest Data = 1 [json_name = "data"];
|
||||
}
|
||||
message GetMgmtArtworkListRequest {
|
||||
int64 BatchId = 1 [json_name = "batchId"];
|
||||
int64 ArtistId = 2 [json_name = "artistId"];
|
||||
string Name = 3 [json_name = "name"];
|
||||
string ArtistName = 4 [json_name = "artistName"];
|
||||
string InvitedName = 5 [json_name = "invitedName"];
|
||||
uint64 IsImport = 6 [json_name ="isImport"];
|
||||
uint64 State = 7 [json_name = "state"];
|
||||
uint64 Page = 8 [json_name = "page"];
|
||||
uint64 Num = 9 [json_name = "num"];
|
||||
}
|
||||
|
||||
message GetMgmtArtworkListRespond {
|
||||
repeated UpdateArtworkRequest Data = 2 [json_name = "data"];
|
||||
}
|
||||
message GetArtworkRequest {
|
||||
uint64 ID = 1 [json_name = "id"];
|
||||
}
|
||||
|
||||
message GetArtworkRespond {
|
||||
uint64 ID = 1 [json_name = "id"];
|
||||
uint64 ArtistId = 2 [json_name = "artistId"];
|
||||
string ArtistId = 2 [json_name = "artistId"];
|
||||
string Name = 3 [json_name = "name"];
|
||||
string ModelYear = 4 [json_name = "modelYear"];
|
||||
string Photo = 5 [json_name = "photo"];
|
||||
@ -136,4 +159,7 @@ message CheckUserLockRequest {
|
||||
message UploadArtworkRespond {
|
||||
|
||||
|
||||
}
|
||||
message ApproveArtworkRespond{
|
||||
|
||||
}
|
@ -32,6 +32,8 @@ type ArtworkClient interface {
|
||||
CheckUserLock(ctx context.Context, in *CheckUserLockRequest, opts ...grpc_go.CallOption) (*CheckUserLockRespond, common.ErrorWithAttachment)
|
||||
UpdateArtwork(ctx context.Context, in *UpdateArtworkRequest, opts ...grpc_go.CallOption) (*UpdateArtworkRespond, common.ErrorWithAttachment)
|
||||
GetArtworkList(ctx context.Context, in *GetArtworkListRequest, opts ...grpc_go.CallOption) (*GetArtworkListRespond, common.ErrorWithAttachment)
|
||||
ApproveArtwork(ctx context.Context, in *ApproveArtworkRequest, opts ...grpc_go.CallOption) (*ApproveArtworkRespond, common.ErrorWithAttachment)
|
||||
GetMgmtArtworkList(ctx context.Context, in *GetMgmtArtworkListRequest, opts ...grpc_go.CallOption) (*GetMgmtArtworkListRespond, common.ErrorWithAttachment)
|
||||
GetArtwork(ctx context.Context, in *GetArtworkRequest, opts ...grpc_go.CallOption) (*GetArtworkRespond, common.ErrorWithAttachment)
|
||||
DelArtwork(ctx context.Context, in *DelArtworkRequest, opts ...grpc_go.CallOption) (*DelArtworkRespond, common.ErrorWithAttachment)
|
||||
UploadArtwork(ctx context.Context, in *UploadArtworkRequest, opts ...grpc_go.CallOption) (*UploadArtworkRespond, common.ErrorWithAttachment)
|
||||
@ -42,13 +44,15 @@ type artworkClient struct {
|
||||
}
|
||||
|
||||
type ArtworkClientImpl struct {
|
||||
ArtworkAdd func(ctx context.Context, in *ArtworkAddRequest) (*ArtworkAddRespond, error)
|
||||
CheckUserLock func(ctx context.Context, in *CheckUserLockRequest) (*CheckUserLockRespond, error)
|
||||
UpdateArtwork func(ctx context.Context, in *UpdateArtworkRequest) (*UpdateArtworkRespond, error)
|
||||
GetArtworkList func(ctx context.Context, in *GetArtworkListRequest) (*GetArtworkListRespond, error)
|
||||
GetArtwork func(ctx context.Context, in *GetArtworkRequest) (*GetArtworkRespond, error)
|
||||
DelArtwork func(ctx context.Context, in *DelArtworkRequest) (*DelArtworkRespond, error)
|
||||
UploadArtwork func(ctx context.Context, in *UploadArtworkRequest) (*UploadArtworkRespond, error)
|
||||
ArtworkAdd func(ctx context.Context, in *ArtworkAddRequest) (*ArtworkAddRespond, error)
|
||||
CheckUserLock func(ctx context.Context, in *CheckUserLockRequest) (*CheckUserLockRespond, error)
|
||||
UpdateArtwork func(ctx context.Context, in *UpdateArtworkRequest) (*UpdateArtworkRespond, error)
|
||||
GetArtworkList func(ctx context.Context, in *GetArtworkListRequest) (*GetArtworkListRespond, error)
|
||||
ApproveArtwork func(ctx context.Context, in *ApproveArtworkRequest) (*ApproveArtworkRespond, error)
|
||||
GetMgmtArtworkList func(ctx context.Context, in *GetMgmtArtworkListRequest) (*GetMgmtArtworkListRespond, error)
|
||||
GetArtwork func(ctx context.Context, in *GetArtworkRequest) (*GetArtworkRespond, error)
|
||||
DelArtwork func(ctx context.Context, in *DelArtworkRequest) (*DelArtworkRespond, error)
|
||||
UploadArtwork func(ctx context.Context, in *UploadArtworkRequest) (*UploadArtworkRespond, error)
|
||||
}
|
||||
|
||||
func (c *ArtworkClientImpl) GetDubboStub(cc *triple.TripleConn) ArtworkClient {
|
||||
@ -87,6 +91,18 @@ func (c *artworkClient) GetArtworkList(ctx context.Context, in *GetArtworkListRe
|
||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetArtworkList", in, out)
|
||||
}
|
||||
|
||||
func (c *artworkClient) ApproveArtwork(ctx context.Context, in *ApproveArtworkRequest, opts ...grpc_go.CallOption) (*ApproveArtworkRespond, common.ErrorWithAttachment) {
|
||||
out := new(ApproveArtworkRespond)
|
||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ApproveArtwork", in, out)
|
||||
}
|
||||
|
||||
func (c *artworkClient) GetMgmtArtworkList(ctx context.Context, in *GetMgmtArtworkListRequest, opts ...grpc_go.CallOption) (*GetMgmtArtworkListRespond, common.ErrorWithAttachment) {
|
||||
out := new(GetMgmtArtworkListRespond)
|
||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetMgmtArtworkList", in, out)
|
||||
}
|
||||
|
||||
func (c *artworkClient) GetArtwork(ctx context.Context, in *GetArtworkRequest, opts ...grpc_go.CallOption) (*GetArtworkRespond, common.ErrorWithAttachment) {
|
||||
out := new(GetArtworkRespond)
|
||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||||
@ -113,6 +129,8 @@ type ArtworkServer interface {
|
||||
CheckUserLock(context.Context, *CheckUserLockRequest) (*CheckUserLockRespond, error)
|
||||
UpdateArtwork(context.Context, *UpdateArtworkRequest) (*UpdateArtworkRespond, error)
|
||||
GetArtworkList(context.Context, *GetArtworkListRequest) (*GetArtworkListRespond, error)
|
||||
ApproveArtwork(context.Context, *ApproveArtworkRequest) (*ApproveArtworkRespond, error)
|
||||
GetMgmtArtworkList(context.Context, *GetMgmtArtworkListRequest) (*GetMgmtArtworkListRespond, error)
|
||||
GetArtwork(context.Context, *GetArtworkRequest) (*GetArtworkRespond, error)
|
||||
DelArtwork(context.Context, *DelArtworkRequest) (*DelArtworkRespond, error)
|
||||
UploadArtwork(context.Context, *UploadArtworkRequest) (*UploadArtworkRespond, error)
|
||||
@ -136,6 +154,12 @@ func (UnimplementedArtworkServer) UpdateArtwork(context.Context, *UpdateArtworkR
|
||||
func (UnimplementedArtworkServer) GetArtworkList(context.Context, *GetArtworkListRequest) (*GetArtworkListRespond, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetArtworkList not implemented")
|
||||
}
|
||||
func (UnimplementedArtworkServer) ApproveArtwork(context.Context, *ApproveArtworkRequest) (*ApproveArtworkRespond, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ApproveArtwork not implemented")
|
||||
}
|
||||
func (UnimplementedArtworkServer) GetMgmtArtworkList(context.Context, *GetMgmtArtworkListRequest) (*GetMgmtArtworkListRespond, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetMgmtArtworkList not implemented")
|
||||
}
|
||||
func (UnimplementedArtworkServer) GetArtwork(context.Context, *GetArtworkRequest) (*GetArtworkRespond, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetArtwork not implemented")
|
||||
}
|
||||
@ -289,6 +313,64 @@ func _Artwork_GetArtworkList_Handler(srv interface{}, ctx context.Context, dec f
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Artwork_ApproveArtwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ApproveArtworkRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
base := srv.(dubbo3.Dubbo3GrpcService)
|
||||
args := []interface{}{}
|
||||
args = append(args, in)
|
||||
md, _ := metadata.FromIncomingContext(ctx)
|
||||
invAttachment := make(map[string]interface{}, len(md))
|
||||
for k, v := range md {
|
||||
invAttachment[k] = v
|
||||
}
|
||||
invo := invocation.NewRPCInvocation("ApproveArtwork", args, invAttachment)
|
||||
if interceptor == nil {
|
||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
||||
return result, result.Error()
|
||||
}
|
||||
info := &grpc_go.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
||||
return result, result.Error()
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Artwork_GetMgmtArtworkList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetMgmtArtworkListRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
base := srv.(dubbo3.Dubbo3GrpcService)
|
||||
args := []interface{}{}
|
||||
args = append(args, in)
|
||||
md, _ := metadata.FromIncomingContext(ctx)
|
||||
invAttachment := make(map[string]interface{}, len(md))
|
||||
for k, v := range md {
|
||||
invAttachment[k] = v
|
||||
}
|
||||
invo := invocation.NewRPCInvocation("GetMgmtArtworkList", args, invAttachment)
|
||||
if interceptor == nil {
|
||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
||||
return result, result.Error()
|
||||
}
|
||||
info := &grpc_go.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
||||
return result, result.Error()
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Artwork_GetArtwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetArtworkRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@ -399,6 +481,14 @@ var Artwork_ServiceDesc = grpc_go.ServiceDesc{
|
||||
MethodName: "GetArtworkList",
|
||||
Handler: _Artwork_GetArtworkList_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ApproveArtwork",
|
||||
Handler: _Artwork_ApproveArtwork_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetMgmtArtworkList",
|
||||
Handler: _Artwork_GetMgmtArtworkList_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetArtwork",
|
||||
Handler: _Artwork_GetArtwork_Handler,
|
||||
|
Loading…
Reference in New Issue
Block a user