how to save enum as string instead of int in Mongodb using golang

前端 未结 0 1614
日久生厌
日久生厌 2021-02-02 12:55

I have the following proto file.

enum InventoryType {
    LARGE = 0;
    SMALL = 1;
}

my go code:

import (
    "context"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题